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

Bug in LINQ support for $all clause

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.17.0
    • 2.2.3, 2.3.0-beta1
    • Linq, LINQ3
    • Fully Compatible

    Description

      The following query:

      var results = queryable.Where(x => x.Occurrences.Any(o => requiredMeta.All(i => o.Meta.Contains(i)))).ToList();
      

      is rendered incorrectly in the aggregation query sent to MongoDB. There is no "Occurrences" part in the $all clause. Please see attached Program.cs for details on how to reproduce the problem.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            bayger Patryk Bajer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: