[COMPASS-4136] Cannot issue $expr $or query in Compass. Created: 06/Feb/20  Updated: 29/Oct/23  Resolved: 24/Mar/20

Status: Closed
Project: Compass
Component/s: Compass, Grammar
Affects Version/s: 1.20.3
Fix Version/s: 1.22.0

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

Compass 1.20.4, MongoDB 4.2.3. Ubuntu Linux 18.04


Issue Links:
Problem/Incident
causes COMPASS-4146 Disable validation in agg builder, qu... Closed
Sprint: Iteration Zebra

 Description   

Compass thinks a query using $expr and $or (probably other logical operations as well) is not proper syntax.

A query like:

{ $expr: { $or: [ true, true ] } }

 

should be valid, but isn't, though the following does work:

 
{ $expr: { $in: [ true, true ] } }

How about adding a checkbox to Compass along the lines of:

"Yeah I know you think the query syntax is incorrect, but execute the @#%$ing query anyway"

....so that when we run into valid queries that Compass doesn't understand, we can still make progress?


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