We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1832f54 commit 7180dacCopy full SHA for 7180dac
src/Adapters/Storage/Mongo/MongoTransform.js
@@ -445,6 +445,8 @@ const transformInteriorAtom = atom => {
445
return DateCoder.JSONToDatabase(atom);
446
} else if (BytesCoder.isValidJSON(atom)) {
447
return BytesCoder.JSONToDatabase(atom);
448
+ } else if (typeof atom === 'object' && atom && atom.$regex !== undefined) {
449
+ return new RegExp(atom.$regex);
450
} else {
451
return atom;
452
}
0 commit comments