seneca-mongo-store
seneca-mongo-store copied to clipboard
is findOne needed after upsert?
does the upsert not return the updated document?
https://github.com/senecajs/seneca-mongo-store/blob/master/mongo-store.js#L230
this was a question - please reply via comment here
@rjrodger No, the call to findOne
is not required. Both findOneAndUpdate
and findOneAndReplace
return the new/updated document if the option returnOriginal: false
is passed to them.