nuxt-graphql-client
nuxt-graphql-client copied to clipboard
[feature] Make `useAsyncGql` accept refs
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.