Bug in LINQ support for $all clause

XMLWordPrintableJSON

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

      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.

        1. Program.cs
          1 kB
          Patryk Bajer

              Assignee:
              Robert Stam
              Reporter:
              Patryk Bajer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: