Details
-
Bug
-
Resolution: Works as Designed
-
Critical - P2
-
None
-
2.4.3
Description
Related to CSHARP-1912.
The following code:
var filt1 = Builders<Thing>.Filter.Empty; |
var filt2 = Builders<Thing>.Filter.Empty; |
var filter = Builders<Thing>.Filter.And(filt1,filt2); |
Results in the following filter being rendered:
{ "$and" : [] }Instead of an empty filter.
This was introduced in version 2.4.2,
Attachments
Issue Links
- related to
-
CSHARP-1291 And and Or filter builder methods should handle zero clauses correctly
-
- Closed
-