Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3365

LINQ3: Only one symbol should be visible inside an $elemMatch in a filter

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • Labels:
      None

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: