Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Make useAsyncGql accept refs #213

Closed
TheDutchCoder opened this issue Sep 28, 2022 · 0 comments
Closed

[feature] Make useAsyncGql accept refs #213

TheDutchCoder opened this issue Sep 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@TheDutchCoder
Copy link
Contributor

TheDutchCoder commented Sep 28, 2022

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.

@Diizzayy Diizzayy self-assigned this Nov 25, 2022
@Diizzayy Diizzayy added the enhancement New feature or request label Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants