[COMPASS-3879] $not cannot be used with regEx Created: 05/Sep/19  Updated: 29/Oct/23  Resolved: 20/Sep/19

Status: Closed
Project: Compass
Component/s: Query Bar
Affects Version/s: 1.19.12
Fix Version/s: 1.20.0

Type: Bug Priority: Major - P3
Reporter: Tanna Matan Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-09-05-10-36-56-803.png     PNG File image-2019-09-05-10-37-38-852.png     PNG File image-2019-09-05-10-38-08-949.png     PNG File image-2019-09-05-10-38-28-923.png     PNG File image-2019-09-25-14-30-20-175.png    
Sprint: Iteration Newt

 Description   

$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.

 

 

 

 

 

 


Generated at Wed Feb 07 22:34:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.