jsonSchema

fun jsonSchema(schema: Bson): Bson

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

Return

the filter

Parameters

schema

the JSON schema to validate against