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

Bug in LINQ support for $all clause

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.17.0
    • Affects Version/s: 2.2.3, 2.3.0-beta1
    • Component/s: Linq, LINQ3
    • Labels:
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: