Skip to content

docs: editorial on abstract types page #4394

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

Open
wants to merge 2 commits into
base: 16.x.x
Choose a base branch
from

Conversation

benjie
Copy link
Member

@benjie benjie commented May 14, 2025

Editorial on #4393

Excellent guide! The main correction was that in GraphQL v16 support for returning the object type from resolveType was turned into an error, and it is removed in v17 - strings are the only supported approach going forward. I also made some more of the text more accurate and added a little detail in a couple places. Overall, an excellent resource!

I would like to see all the code in GraphQL.js using ESM though. Something to chat with @JoviDeCroock about, but now Node 22 is the LTS version and it supports require(ESM), writing our code samples in ESM will be much more natural and also allows for copy/paste into TypeScript without requiring editing.

cc @sarahxsanders

@benjie benjie requested a review from a team as a code owner May 14, 2025 18:37
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