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

Predicated Any doesn't render correct field names.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: 2.1
    • Component/s: None
    • None

      var local = new [] { "Betty", "Admins" };
      users.AsQueryable().Where(x => x.Permissions.Any(p => local.Contains(p.User)));
      

      renders:

      [{ "$match" : { "User" : { "$in" : ["Betty", "Admins"] } } }]
      

      but it should render:

      { "$match" : { "Permissions.User" : { "$in" : ["Betty", "Admins"] } } }
      

      Notice that the Permissions prefix is left out.

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: