c2-mongoose 2.1.168 → 2.1.170

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.
@@ -432,7 +432,7 @@ var SearchFlow = /** @class */ (function () {
432
432
  var key = _a[0], value = _a[1];
433
433
  if ((0, Utils_1.isNotEmpty)(value)) {
434
434
  var condition = {};
435
- if (['projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
435
+ if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
436
436
  return;
437
437
  }
438
438
  if (typeof value === 'string' && _this.isValidObjectId(value)) {
@@ -506,7 +506,7 @@ var SearchFlow = /** @class */ (function () {
506
506
  if (key.endsWith('Like')) {
507
507
  return;
508
508
  }
509
- if (['pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
509
+ if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
510
510
  return;
511
511
  }
512
512
  if ((0, Utils_1.isNotEmpty)(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.168",
3
+ "version": "2.1.170",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -372,7 +372,7 @@ abstract class SearchFlow {
372
372
  Object.entries(objectSearch.model).forEach(([key, value]) => {
373
373
  if (isNotEmpty(value)) {
374
374
  let condition = {} as any
375
- if (['projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
375
+ if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
376
376
  return
377
377
  }
378
378
 
@@ -456,7 +456,7 @@ abstract class SearchFlow {
456
456
  if (key.endsWith('Like')) {
457
457
  return
458
458
  }
459
- if (['pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
459
+ if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
460
460
  return
461
461
  }
462
462
  if (isNotEmpty(value)) {