resolve-readmodel-mongo
v0.23.2
Published
An adapter the resolve-query uses to store the read model state in MongoDB
Downloads
88
Readme
resolve-readmodel-mongo
A Read Model Adapter for MongoDB 4.0+. The adapter provides a query API for projection and resolvers. This API is similar to the other reSolve adapters API, which means you can change a Read Model Adapter in the configuration file without changing the code.
Available Parameters
url
- a MongoDB connection string. Refer to Connection String URI Format for more information....connectionSettings
- see URI Connection Settings for more information.
Adapter interface is provided by resolve-readmodel-base package.
Usage
import createAdapter from 'resolve-readmodel-mongo'
const adapter = createAdapter({
url: 'mongodb://localhost:27017/DatabaseName',
...connectionSettings
})