Skip to main content

SequelizeServerSdk

SequelizeServerSdk is extended from the ServerSdk class and provides an implementation for Sequelize.

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

Options

Extends the ServerSdk options with the following:

NameTypeDescriptionRequired
schemaStoreMongoSchemaStoreThe schema store.Yes
sequelizeSequelizeThe Sequelize instance.Yes

MongoDatabaseContext

The MongoDatabaseContext available as DbContext in the plugin context.

NameTypeDescription
sessionTransactionThe Sequelize transaction.