Hi all! Can anybody help me with a concurrency iss...
# orm-help
c
Hi all! Can anybody help me with a concurrency issue? 🙏 I want to update a node only if its
status
field value is compatible. How can I ensure that? The only way I found is to use
updateMany
(even to update a single entity) with a constraint on
status
value. It works great but batch updates don't trigger subscriptions 😞
a
Select them in batches and update them one by one?
c
I have only one node to update. Let consider a Post that can't be updated to a "PUBLISHED" status, if it hasn't a "APPROVED" status. How can I ensure that nothing will change my "APRROVED" status to "TO_APPROVE" between my check and my mutation
a
Ahaaa