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

Predicated Any doesn't render correct field names.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1
    • 2.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: