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

feat(query): generate query and mutation options functions #821

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

anymaniax
Copy link
Collaborator

Status

READY

Description

Add a new exported function for query and mutator options for each operator.

With it, you can easily use them to do something like the following code for example

const queryClient = useQueryClient();

queryClient.prefetchQuery(getOperationNameQueryOptions(Args))

@vercel
Copy link

vercel bot commented Apr 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orval ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2023 8:48pm

@anymaniax anymaniax force-pushed the feature/query-add-query-and-mutation-functions branch from ff30575 to 24fd9a8 Compare April 9, 2023 20:46
@anymaniax anymaniax merged commit 79e9527 into master Apr 11, 2023
@anymaniax anymaniax deleted the feature/query-add-query-and-mutation-functions branch April 11, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant