sorribas / to-mongodb-core

Gets the underlying mongodb-core instance in the passed mongodb-native or mongojs instance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

to-mongodb-core

build status

Gets the underlying mongodb-core instance in the mongojs instance.

Usage

var mongojs = require('mongojs');
var toMongodbCore = require('to-mongodb-core');

var db = mongojs('mydb');

toMongodbCore(db, function(err, mdbcore) {
  // mdbcore is the mongodb-core server instance used.
});

License

MIT

About

Gets the underlying mongodb-core instance in the passed mongodb-native or mongojs instance.

License:Other


Languages

Language:JavaScript 100.0%