FieldsPair & Criteria
Use FieldsPair, Condition, logical grouping, id alias, and Driver-native filter to construct dynamic MongoDB conditions.
FieldsPair and Condition
• eq, notEq, between, gt/gte, lt/lte
• in, notIn, like, regex, exists
• isNull, isNotNull, all, near, nearSphere, elemMatch
Dynamic conditions and autoRangePair
from + to
between
from only
gte
to only
lte
Neither
Returns null, so it can be naturally excluded from dynamic conditions.
AND / OR / NOT grouping
FieldBuilder supports and, or, not, notAny, notAll, and allows direct specification of the root logical operator.
Field name and id rules
Only the exact id path segment is normalized to _id. A valid 24-character hex String passed to the id alias can be converted to ObjectId, but a String specified directly as _id will not be automatically converted. String field paths are based on physical MongoDB field names.
Driver-native filter
driverFilter(Bson) uses the Driver definition as is, without reinterpreting raw BSON or field mapping.