node.js - Attain insertOneWriteOpResult object after operation -
https://mongodb.github.io/node-mongodb-native/2.1/api/collection.html#~insertonewriteopresult
how attain insertonewriteopresult
after performing insertone
operation?
var result = yield users.insertone({ lol: 'lol' }); console.log(json.stringify(result));
i seem object {"ok":1,"n":1}
, not list specified in documentation.
result object may contain values cannot stringified, values cannot stringified stripped object when try print them console.
Comments
Post a Comment