@travetto/model-mongo 3.1.7 → 3.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "description": "Mongo backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "mongo",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@travetto/config": "^3.1.2",
29
29
  "@travetto/model": "^3.1.8",
30
- "@travetto/model-query": "^3.1.7",
30
+ "@travetto/model-query": "^3.1.8",
31
31
  "mongodb": "^5.0.1"
32
32
  },
33
33
  "peerDependencies": {
@@ -163,10 +163,10 @@ export class MongoUtil {
163
163
  } else if (firstKey === '$empty') {
164
164
  const isEmpty = v.$empty;
165
165
  if (isEmpty) {
166
- v.$size = 0;
166
+ v.$in = [null, []];
167
167
  } else {
168
168
  v.$exists = true;
169
- v.$not = { $size: 0 };
169
+ v.$nin = [null, []];
170
170
  }
171
171
  delete v.$empty;
172
172
  } else if (firstKey === '$regex') {