[CSHARP-3365] LINQ3: Only one symbol should be visible inside an $elemMatch in a filter Created: 27/Jan/21  Updated: 28/Oct/23  Resolved: 04/Oct/21

Status: Closed
Project: C# Driver
Component/s: LINQ3
Affects Version/s: None
Fix Version/s: 2.14.0

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CSHARP-3354 LINQ3: Get PredicateTranslatorValidat... Closed
Epic Link: CSHARP-2608

 Description   

For example, only `b` should be visible when translating an expression like:

a.Collection1.Any(b => a.Value1 == 2)

MQL filter language has more restrictive visibility rules here than the C# language does. That's valid in C#, but can't be translated to an MQL filter.

Note: this can probably be translated using `$expr`, which we will be working on soon.



 Comments   
Comment by Robert Stam [ 27/Jan/21 ]

Done but not reviewed

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