nuxt-graphql-client icon indicating copy to clipboard operation
nuxt-graphql-client copied to clipboard

[feature] Make `useAsyncGql` accept refs

Open TheDutchCoder opened this issue 3 years ago • 0 comments

Currently you can't make queries/mutations accept refs as inputs, which forces you to use something like const { error, refresh: submit } = await useAsyncData('updateAccount', () => GqlUpdateAccount({})).

If we could get the inputs to accept refs, you could use the useAsyncGql method directly and get nicely typed errors (for example).

Right now we would have to build a custom composable to accept this.

TheDutchCoder avatar Sep 28 '22 15:09 TheDutchCoder