[COMPASS-2181] As a developer I want to use $elemMatch Created: 08/Oct/17  Updated: 29/Oct/23  Resolved: 27/Sep/19

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

Type: Story Priority: Major - P3
Reporter: Tomer Yakir Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: COMPASS-2232

 Description   

Hi,

I'm trying to use the following projection:
{_id:0,'fields.key':0, 'fields':{$elemMatch:{'key' :{$eq : 'Agreement Number'}}}}

This works in the shell, but not in Compass.
The UI element doesn't validate this projection statement (stays red).

Is this by design?



 Comments   
Comment by Massimiliano Marcon [ 27/Sep/19 ]

Just tested it and it works now.

Comment by Sam Weaver [ 27/Nov/17 ]

Yes we need to expand the language model to support things like elemMatch. See epic for other missing operators.

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