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
However, when I add a DjangoPatchMutation for this model, and then try to patch an object that triggers the uniqueness constraint, the following error is returned:
graphql.error.located_error.GraphQLLocatedError: current transaction is aborted, commands ignored until end of transaction block
This makes it hard to handle error messages in my app.
For comparison, this is the error that is returned when the same constraint is triggered by DjangoCreateMutation:
I have a model with a
unique_together
constraint:However, when I add a
DjangoPatchMutation
for this model, and then try to patch an object that triggers the uniqueness constraint, the following error is returned:This makes it hard to handle error messages in my app.
For comparison, this is the error that is returned when the same constraint is triggered by
DjangoCreateMutation
:The text was updated successfully, but these errors were encountered: