Provide atomic operators to update queries #9041
tyteen4a03
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
That might work for simple scenarios. I'm not sure how feasible it is when you have validation, field hooks, access control or versions enabled. We could likely add support but it would require a transaction and the rest of the overhead of making an update. I think the best you can do is to write your own using the mongoose models or custom SQL from a custom endpoint. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great for Payload to provide atomic operators (like
$inc
in MongoDB) for single-operation atomic updates, which allows the developer to skip opening and closing transactions to update a single field.Beta Was this translation helpful? Give feedback.
All reactions