Skip to content

Commit

Permalink
fix: not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeIbberson committed Feb 7, 2020
1 parent 8db9f4d commit ce916c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/__tests__/comparison.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('Comparison', () => {
{ language: /EN/gi },
{ 'bestFriend.name': /jon/gi },
{ 'colleague.age': { $exists: true } },
{ 'colour': { $or: [{ $exists: false }, { $eq: null }] } },
{ 'colour': { $eq: null } },
],
}));

Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const isLessThanOrEqualTo = (a, b, locale) =>

const cast = (v) => {
if (v === '*') return { $exists: true };
if (v === '!') return { $or: [{ $exists: false }, { $eq: null }] };
if (v === '!') return { $eq: null };

const test = validate(v);
if (test.date()) return v;
Expand Down

0 comments on commit ce916c8

Please sign in to comment.