Can we use the atomic MongoDB increment operator? #10311
Unanswered
willemmulder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are storing financial information in our DB, and it is important that updates to the financial records are atomic. I.e. we don't want to read, then write because that allows for a window where other processes can also write to the record, causing data problems. Ideally, we'd like to use the atomic MongoDB increment operator. However, I can't seem to find how to do that using Payload. Is it possible using the local update API?
Beta Was this translation helpful? Give feedback.
All reactions