#Why am I able to only send one arguement to mutation function?
12 messages ยท Page 1 of 1 (latest)
Why am I able to only send one arguement to mutation function?
I forget the reasoning behind it but you need to pass your variables as one object: deleteSessionMutation.mutate({ sessionId, userId }) and change your deleteSession function to deconstruct them: deleteSession = async ({ sessionId, userId }) => {...}
ok thanks, thats so weird tho
because the second argument is an object that has (additional) callbacks
Appreciate the hlep and pointing me to documentation
I've come to learn if I have a question Dominik either already documented it or wrote a blog about it lol
can I tweet this ๐ ?
Haha sure