Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

deepstream.io-storage-mongodb

1.1.0 • Public • Published

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:test@paulo.mongohq.com:10087/munchkin-dev',
  splitChar: '/'
}));
 
server.start();

Keywords

none

install

npm i deepstream.io-storage-mongodb

Downloadsweekly downloads

17

version

1.1.0

license

Apache-2.0

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability