We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes, collection name may not be in camelCase, it would be great if a mapping could be provided. Allow object to be passed, e.g.
var db = mongojs('mydb', { collectionA: 'collection_a', collectionB: 'collection-b', });
I original posted as then/then-mongo#5, find that it rely on mongojs implementation too.
mongojs
The text was updated successfully, but these errors were encountered:
I prefer to do something like this in my code
var db = mongojs('mydb', [ 'collection_a', 'collection-b', ]); module.exports = { collectionA: db.collection_a, collectionB: db.collection-b, }
You can even do this if your on node 6+
var db = mongojs('mydb'); module.exports = Object.assign(db, { collectionA: db.collection_a, collectionB: db.collection-b }
Sorry, something went wrong.
No branches or pull requests
Sometimes, collection name may not be in camelCase, it would be great if a mapping could be provided.
Allow object to be passed, e.g.
I original posted as then/then-mongo#5, find that it rely on
mongojs
implementation too.The text was updated successfully, but these errors were encountered: