Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 435 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 435 Bytes

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