fun jsonSchema(schema: Bson): Bson
(source)
Creates a filter that matches all documents that validate against the given JSON schema document.
schema
- the JSON schema to validate against
Return
the filter
Mongodb
.driver.manual reference/operator/query/jsonSchema/ $jsonSchema