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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.0
    • None
    • LINQ3
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: