fun not(filter: Bson): Bson
(source)
Creates a filter that matches all documents that do not match the passed in filter. Requires the field name to passed as part of the value passed in and lifts it to create a valid "$not" query:
will generate a MongoDB query like:
Return
the filter
Mongodb
.driver.manual reference/operator/query/not $not