How to use a graphql codegen mutation in flutter? #251
Unanswered
LiamKarlMitchell
asked this question in
Q&A
Replies: 1 comment
-
Try and take a look at how |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can we execute a generated mutation with some input variables in Flutter?
I could only see examples for querying in the docs and example folder.
Could someone please provide some examples for widget, hook & direct from the client?
Would like to use the results in Builder if possible but could not find a way to see when it was completed other than the onComplete method.
Is there a way to get a hasResults or isLoadedWithResults in the builder functions? As sometimes the data might come from cache or eagerly set by dev?
How about handling onError as well, to inform the user something went wrong?
And how to configure the cache for queries, update it for paginated use case's?
Is wiping the cache as easy as just clearing hive?
For example given the schema.
Client side gql file.
Server side (Lighthouse Laravel) schema.
It gets generated into a bunch of code probably too big to paste here.
I had Mutation kind of working.
But it was getting called constantly for some reason.
Beta Was this translation helpful? Give feedback.
All reactions