deepstream.io-storage-mongodb
v1.1.1
Published
A template that can be forked to create new cache and storage connectors for deepstream.io
Downloads
4
Readme
deepstream.io-storage-mongodb
deepstream storage connector for mongodb
This connector uses the npm mongodb package. Please have a look there for detailed options.
##Basic Setup
plugins:
storage:
name: mongodb
options:
connectionString: ${MONGODB_CONNECTION_STRING}/someDb
defaultCollection: 'someTable'
splitChar: '/'
var Deepstream = require( 'deepstream.io' ),
MongoDBStorageConnector = require( 'deepstream.io-storage-mongodb' ),
server = new Deepstream();
server.set( 'storage', new MongoDBStorageConnector( {
connectionString: 'mongodb://test:[email protected]:10087/munchkin-dev',
splitChar: '/'
}));
server.start();