Open muslimmuda15 opened 1 week ago
👋 @muslimmuda15 Thank you for raising an issue. I will investigate the issue and get back to you as soon as possible. Please make sure you have provided enough context.
This library is created and maintained by me, @budde377. Please consider supporting my work and ensure our survival by donating here.
Thanks for reaching out @muslimmuda15 - The useMutation*
hook returns an object with a runMutation
method on it. When you call this, you need to provide the variables.
can you give me some example the full code, because i getting error like this, and i already using StatefulHookWidget
Because the code-generator is just a wrapper around graphql
and graphql_flutter
, try and have a look at their documentation: https://github.com/zino-hofmann/graphql-flutter/tree/main/packages/graphql_flutter#mutations
I follow step by step the instruction until generate my graphql
I tried to request my query from my widget
everything working well.
But how to impelementation mutation? I have graphql mutation
But I still confuse how to implement that? Because it seem very diffeent with the query.
I implementation like this
the
useMutation
requiredWidgetOptions_Mutation_CreateRfqTestMutation
but, i cannot set variable inside there.Please help me.