Skip to content

NOALVO/mongodb-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published