c2-mongoose 2.1.179 → 2.1.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flow/SearchFlow.js +17 -1
- package/package.json +1 -1
- package/src/flow/SearchFlow.ts +16 -1
package/dist/flow/SearchFlow.js
CHANGED
|
@@ -442,7 +442,23 @@ var SearchFlow = /** @class */ (function () {
|
|
|
442
442
|
var key = _a[0], value = _a[1];
|
|
443
443
|
if ((0, Utils_1.isNotEmpty)(value)) {
|
|
444
444
|
var condition = {};
|
|
445
|
-
if ([
|
|
445
|
+
if ([
|
|
446
|
+
'onlyMetadata',
|
|
447
|
+
'projection',
|
|
448
|
+
'pageable',
|
|
449
|
+
'orderSense',
|
|
450
|
+
'orderBy',
|
|
451
|
+
'properties',
|
|
452
|
+
'populate',
|
|
453
|
+
'page',
|
|
454
|
+
'limit',
|
|
455
|
+
'model',
|
|
456
|
+
'select',
|
|
457
|
+
'searchText',
|
|
458
|
+
'sort',
|
|
459
|
+
'isPageable',
|
|
460
|
+
'searchPageable'
|
|
461
|
+
].includes(key)) {
|
|
446
462
|
return;
|
|
447
463
|
}
|
|
448
464
|
if (typeof value === 'string' && _this.isValidObjectId(value)) {
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -382,7 +382,22 @@ abstract class SearchFlow {
|
|
|
382
382
|
Object.entries(objectSearch).forEach(([key, value]) => {
|
|
383
383
|
if (isNotEmpty(value)) {
|
|
384
384
|
let condition = {} as any
|
|
385
|
-
if ([
|
|
385
|
+
if ([
|
|
386
|
+
'onlyMetadata',
|
|
387
|
+
'projection',
|
|
388
|
+
'pageable',
|
|
389
|
+
'orderSense',
|
|
390
|
+
'orderBy',
|
|
391
|
+
'properties',
|
|
392
|
+
'populate',
|
|
393
|
+
'page',
|
|
394
|
+
'limit',
|
|
395
|
+
'model',
|
|
396
|
+
'select',
|
|
397
|
+
'searchText',
|
|
398
|
+
'sort',
|
|
399
|
+
'isPageable',
|
|
400
|
+
'searchPageable'].includes(key)) {
|
|
386
401
|
return
|
|
387
402
|
}
|
|
388
403
|
|