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

docs: add TypedDocumentNode example #10031

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

henryqdineen
Copy link
Contributor

We noticed that the "Using Apollo with TypeScript" documentation makes no mention of TypeDocumentNode, which we consider a best practice. It would be nice to have somewhere to point to in the official docs.

In this PR I borrowed an existing blurb from the CHANGELOG and adapted the "Typing hooks" useQuery() example for my purposes.

Thanks!

Copy link
Contributor

@jpvajda jpvajda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good to me, and is a nice addition so thanks for the contribution! I just want to get another set of eyes on the code sample to ensure it represents this functionality well. cc @hwillson @benjamn @alessbell @MrDoomBringer

Copy link
Member

@benjamn benjamn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to keep you waiting @henryqdineen—thanks for this!

@benjamn benjamn merged commit 896e5d8 into apollographql:main Oct 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants