Skip to content

mongoDbFilter

mongoDbFilter(predicate): Record<string, MongoDbFilterValue>

Converts a predicate to the filter document that a MongoDB driver accepts.

An integer becomes a bigint, which a driver stores as a 64-bit BSON integer. A caller that needs the driver’s own Long wraps that value.

Throws when the predicate carries a value that no profile emits.

MongoDbPredicate

Predicate that the MongoDB profile produced.

Record<string, MongoDbFilterValue>