$not cannot be used with regEx in MongoDB Compass 1.19.6 as well as latest version 1.19.12. The same query is working fine in Mongo Shell.
Query Example:
{ name: { $not: /^H.*/ } } { name: { $not: { $regex: "^H.*" } } }
Please see attached images.
$not cannot be used with regEx in MongoDB Compass 1.19.6 as well as latest version 1.19.12. The same query is working fine in Mongo Shell.
Query Example:
{ name: { $not: /^H.*/ } } { name: { $not: { $regex: "^H.*" } } }
Please see attached images.