You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Hasura allows multiple mutations in a single query, in which case all these separate mutations are applied sequentially in a same transaction block, I wanted to understand how the system works if one of these mutations is an action.
Does the Action get executed first or does hasura finish its direct mutations first? And if hasura's mutation fails, what happens to the mutation I might have done within my action handler since that is obviously going to work inside a different transaction?
I looked through the Hasura docs pretty thoroughly but couldn't find a clear answer to something like this. I'm new to Hasura so in case this is already covered in a doc, I'd really appreciate a link to it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since Hasura allows multiple mutations in a single query, in which case all these separate mutations are applied sequentially in a same transaction block, I wanted to understand how the system works if one of these mutations is an action.
Does the Action get executed first or does hasura finish its direct mutations first? And if hasura's mutation fails, what happens to the mutation I might have done within my action handler since that is obviously going to work inside a different transaction?
I looked through the Hasura docs pretty thoroughly but couldn't find a clear answer to something like this. I'm new to Hasura so in case this is already covered in a doc, I'd really appreciate a link to it.
Beta Was this translation helpful? Give feedback.
All reactions