jerni
a framework to build data-driven products from the ground up

module: @jerni/store-mongo/makeStore

create a MongoDbStore instance from given configuration

Summary

type: Function

Parameters

config
: MongoDbStoreConfig

MongoDB Store specific configuration

returns

Usages

// create a MongoDbStore instance from given configuration
const makeMongoDbStore = require("@jerni/store-mongo/makeStore");
await makeMongoDbStore({
name: 'MyServices',
url: 'mongodb://localhost:27017',
dbName: 'my_service_dev',
models: [clients, profiles],
});