1.0.3 • Published 2 months ago
awaitmongodb v1.0.3
"# Await-MongoDB" little await mongodb helper All methods are described here Standard view:
const awaitmongo = require('awaitmongodb')
var result = await awaitmongo(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