Skip to content

datasage/deepstream.io-storage-mongodb

 
 

Repository files navigation

deepstream.io-storage-mongodb npm version

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();

About

A deepstream.io storage connector for MongoDb

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.7%
  • Shell 6.3%