@collection-storage/mongodb
v4.0.7
Published
MongoDB adaptor for collection-storage
Maintainers
Readme
Collection Storage MongoDB Connector
This is a database connector for collection-storage. See the main project's documentation for general usage.
Install dependency
npm install --save collection-storage @collection-storage/mongodbFor synchronous access:
import '@collection-storage/mongodb';Or, for dynamic access (only loaded if / when used):
import { CollectionStorage } from 'collection-storage';
CollectionStorage.dynamic([
['mongodb', () => import('@collection-storage/mongodb')],
['mongodb+srv', () => import('@collection-storage/mongodb')],
]);Connection String
mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[database][?options]]
mongodb+srv://[username:password@]host[:port][/[database][?options]]See the mongo documentation for full details.
