Table of Contents

Method JsonSchema

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

JsonSchema(BsonDocument)

Creates a json schema filter.

public FilterDefinition<TDocument> JsonSchema(BsonDocument schema)

Parameters

schema BsonDocument

The json validation schema.

Returns

FilterDefinition<TDocument>

A schema filter.