-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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.