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

Popular posts from this blog

python - cx_oracle unable to find Oracle Client -

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -