-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: 3.5.2
-
Component/s: LINQ
-
None
-
None
-
Dotnet Drivers
-
None
-
None
-
None
-
None
-
None
-
None
The server can't handle this query:
{ A : { $elemMatch : { $or : [{ $eq : 2 }, { $gt : 3 }] } } }
but it can be rewritten as:
{ $or : [{ A : { $elemMatch : { $eq : 2 } } }, { A : { $elemMatch : { $gt : 3 } } }] }
which the server can handle.
- related to
-
CSHARP-2348 Search by condition with method Any (Linq) returns 0 documents when filter has OR condition
-
- Closed
-