0.0.3 • Published 4 years ago

mongodb-pro v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

DEPRECATION NOTICE

This repository has been deprecated and archived in favor of the new mongodb-proper-repository. This means its NPM package will be soon removed.

Read more about here.

mongodb-pro

A wrapper that encapsulates MongoDB Node.js driver, mongo-xcollection and other useful features.

Example

const db = await MongoDb.connect('mongodb://yourconnectionstring', 'dbname');

const dbrother = db.siblingDb('dbname2');

const Users = db.xcollection('users');
const users = Users.find({});

db.close();

See also

mongodb-xcollection