kmongo / org.litote.kmongo / jsonSchema

jsonSchema

fun jsonSchema(schema: Bson): Bson (source)

Creates a filter that matches all documents that validate against the given JSON schema document.

Parameters

schema - the JSON schema to validate against

Return
the filter

Mongodb
.driver.manual reference/operator/query/jsonSchema/ $jsonSchema