Error when incrementing with save
ilyago opened this issue · 0 comments
ilyago commented
UnhandledPromiseRejectionWarning: MongoError: The dollar ($) prefixed field '$inc' in '$inc' is not valid for storage
var user = {id: uid, $inc: {ref: 1}}
controller.storage.users.save(user);
is there any way I can do that without setting the separate findOneAndUpdate update option?