hm can’t I just do the query in a transaction so it is similar to upsert but I know the result?
If I try to check it afterward with a query it could be difficult.
Let’s assume the only thing I need to register for a new user is the email.
In case another user is already registered with that email I don’t know if the new registration was successful as in both cases (insert or blocked) I will find a user with this email.
I could add an additional parameter like the registration time to check it. But doing it like this. Would in the end also be the same as just query before the mutation
As in theory between query and mutation, another mutation for the same email address could happen. But this would also be the case if I query afterwords.
Or did I completely understand something wrong?