Skip to main content

MongoServerSdk

MongoServerSdk is extended from the ServerSdk class and provides an implementation for MongoDB.

const sdk: IServerSdk = new MongoServerSdk({
schemaStore,
});

Options

Extends the ServerSdk options with the following:

NameTypeDescriptionRequired
schemaStoreMongoSchemaStoreThe schema store.Yes

MongoDatabaseContext

The MongoDatabaseContext available as DbContext in the plugin context.

NameTypeDescription
sessionClientSessionThe MongoDB client session.