0.0.3 • Published 5 years ago
@m0nstrum/smartmongo v0.0.3
SmartMongo
fast mongodb helper All methods are described here Standard view:
const SmartMongo = require('SmartMongo')
SmartMongo(url, dbname, action, collection, query, newvalue)
- url - url of mongodb, looks like this - 'mongodb://:@gs111111.mlab.com:11111/kdjdh23857'
- dbname - name of database
- action - action to do(insertOne, etc)
- collection - collection name
- query - object to insert|find etc
- newvalue - object, updates query