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
when I run this mutation it will insert a new user and it returns a response. But I don't get any response at all when the user already exists. Also it seems that the sequence is getting incremented even if a user is not created
What is the expected behavior?
I would like the above query to return results in case of a conflict. I would also like the sequence to not increment if there's no record inserted.
How to reproduce the issue?
run the above query with a unique constraint on email
get a result
run it again, nothing is returned
Any possible solutions/workarounds you're aware of?
my workaround is to just query first and then don't run the insert if the user already exists.
The text was updated successfully, but these errors were encountered:
Version Information
Server Version: v2.15.0
Environment
local docker dev env
What is the current behaviour?
I've got a query like this. It's a simple users table with an autogenerated id and a default role.
when I run this mutation it will insert a new user and it returns a response. But I don't get any response at all when the user already exists. Also it seems that the sequence is getting incremented even if a user is not created
What is the expected behavior?
I would like the above query to return results in case of a conflict. I would also like the sequence to not increment if there's no record inserted.
How to reproduce the issue?
Any possible solutions/workarounds you're aware of?
my workaround is to just query first and then don't run the insert if the user already exists.
The text was updated successfully, but these errors were encountered: