@mashroom/mashroom-storage-provider-mongodb
v2.7.1
Published
Mashroom storage provider backed by MongoDB
Downloads
139
Readme
Mashroom Storage MongoDB Provider
Plugin for Mashroom Server, a Microfrontend Integration Platform.
This plugin adds a MongoDB based storage provider.
Usage
If node_modules/@mashroom is configured as plugin path just add @mashroom/mashroom-storage-provider-mongodb as dependency.
To activate this provider, configure the Mashroom Security plugin like this:
{
"plugins": {
"Mashroom Storage Services": {
"provider": "Mashroom Storage MongoDB Provider"
}
}
}
And configure this plugin like this in the Mashroom config file:
{
"plugins": {
"Mashroom Storage MongoDB Provider": {
"uri": "mongodb://user:xxxxx@localhost:27017/mashroom_storage_db",
"connectionOptions": {
"poolSize": 5,
"useUnifiedTopology": true,
"useNewUrlParser": true
}
}
}
}
- uri: A MongoDB connection string (see MongoDB documentation). Must contain the database to use.
- connectionOptions: The MongoDB connection options (see MongoDB documentation).