const mongo=require('...path/mongo')
mongo.connect(`mongodb://dbpath/dbname`).then(()=>{// CreateModel first, because subsequent operations depend on the model
mongo.createModel(collection,{// ...enum object // name: [String | 'string'] (one or more)})// to do something
↓↓↓
})// The second arg parameter filters the output field // (if set _id:0 will not output _id field)
mongo.find( condition object,{_id:0},{ skip, limit, sort:{ key:[1|-1]}}).then().catch()
mongo.insert(doc).then().catch()
mongo.insertMany(docs).then().catch()
mongo.update(condition, updateObj, multi).then().catch()
mongo.remove(condition).then().catch()
mongo.count(condition?).then().catch()