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

Predicated Any doesn't render correct field names.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      C# Sprint 26

      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

            Assignee:
            craiggwilson Craig Wilson
            Reporter:
            craiggwilson Craig Wilson
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: