How to use upsert with auto generated id? #9899
Unanswered
itai-spiritt
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, how can I attach a variable to a mutation conditionally?
I want to create an upsert mutation where the id is generated by the database.
So, if the
$id
variable was set, make an update, otherwise, a creation.I have tried something like this:
But the error I receive is a malformed id
Beta Was this translation helpful? Give feedback.
All reactions