We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How might this library's generated code plug into Apollo's refetchQueries?
https://www.apollographql.com/docs/react/data/mutations/#options
The text was updated successfully, but these errors were encountered:
@james-ff Hi. Query document exports DocumentNode named ${QueryName}Document that you can make use of it.
${QueryName}Document
import { ViewerDocument } from '../lib/viewer.graphql' import { useBlaaMutation } from '../lib/blaa.graphql' function BlaaButton() { const [blaa] = useBlaaMutation({ refetchQueries: [{ query: ViewerDocument }] }); return <button onClick={() => blaa()}>blaa.</button> }
Glad to hear if it's okay.
Sorry, something went wrong.
Works! Many Thanks
Good to hear that!
No branches or pull requests
How might this library's generated code plug into Apollo's refetchQueries?
https://www.apollographql.com/docs/react/data/mutations/#options
The text was updated successfully, but these errors were encountered: