Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.4.2
-
None
Description
Quick note. This problem arose in an upgrade from 2.2 to 2.4.2.
When doing the following:
|
SomeMethod |
var filt1 = Builders<Thing>.Filter.Empty;
|
var filt2 = Builders<Thing>.Filter.Empty;
|
var filter = Builders<Thing>.Filter.And(filt1,filt2);
|
The rendered "filter" from above is an empty (and illegal) $and:
{[]}in version 2.2, this would render as empty.
Attachments
Issue Links
- related to
-
CSHARP-1291 And and Or filter builder methods should handle zero clauses correctly
-
- Closed
-