Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Error when incrementing with save #35

Open
ilyago opened this issue Nov 5, 2018 · 0 comments
Open

Error when incrementing with save #35

ilyago opened this issue Nov 5, 2018 · 0 comments

Comments

@ilyago
Copy link

ilyago commented Nov 5, 2018

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant