c2-mongoose 2.1.299 → 2.1.300

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.
@@ -278,7 +278,7 @@ var SearcherFlow = /** @class */ (function () {
278
278
  condition[key] = { $in: value };
279
279
  }
280
280
  else {
281
- condition[key] = value;
281
+ condition[key] = { $size: 0 };
282
282
  }
283
283
  }
284
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.299",
3
+ "version": "2.1.300",
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",
@@ -255,7 +255,7 @@ class SearcherFlow<D> {
255
255
  if (value.length > 0) {
256
256
  condition[key] = { $in: value };
257
257
  } else {
258
- condition[key] = value;
258
+ condition[key] = { $size: 0 };
259
259
  }
260
260
  }
261
261
  } else if (Array.isArray(value)) {