-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
var query1 = collection.AsQueryable()
.Where(c => !(c.Age > 1))
.Where(c => c.Age < 100); { "$match" : { "entity.age" : { "$not" :
} } }, { "$match" : { "entity.age" :
{ "$lt" : 100 } } }])}var query2 = collection.AsQueryable()
.Where(c => !(c.Age > 1) && c.Age < 100);{ "$match" : { "entity.age" : { "$not" :
, "$lt" : 100 } } }])}
Is there a provision for Mongo C# driver to interpret the above two interpretation of similar linq statement as same mongo query i.e with a single $match instead of seperate $match for each where clauses, the obvious answer for the above problem is identify all the queries with multiple where claused to a single where clause. Other than that do we have any other suggestions.