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

Refine getNamedType() for Input and Output types #3063

Merged
merged 1 commit into from May 6, 2021
Merged

Conversation

leebyron
Copy link
Contributor

@leebyron leebyron commented May 6, 2021

This introduces type definitions GraphQLNamedInputType and GraphQLNamedOutputType as the subsets of GraphQLNamedType, and adds function overrides for getNamedType() such that if an input or output type is provided, one of these refined subset types is returned.

This introduces type definitions `GraphQLNamedInputType` and `GraphQLNamedOutputType` as the subsets of `GraphQLNamedType`, and adds function overrides for `getNamedType()` such that if an input or output type is provided, one of these refined subset types is returned.
@IvanGoncharov IvanGoncharov merged commit 9ba6b17 into main May 6, 2021
@IvanGoncharov IvanGoncharov deleted the named-types branch May 6, 2021 07:57
@IvanGoncharov IvanGoncharov added the PR: feature 🚀 requires increase of "minor" version number label May 14, 2021
IvanGoncharov pushed a commit that referenced this pull request Dec 6, 2021
Backport of #3063

This introduces type definitions `GraphQLNamedInputType` and `GraphQLNamedOutputType` as the subsets of `GraphQLNamedType`, and adds function overrides for `getNamedType()` such that if an input or output type is provided, one of these refined subset types is returned.
IvanGoncharov added a commit that referenced this pull request Dec 6, 2021
Backport of #3063

This introduces type definitions `GraphQLNamedInputType` and `GraphQLNamedOutputType` as the subsets of `GraphQLNamedType`, and adds function overrides for `getNamedType()` such that if an input or output type is provided, one of these refined subset types is returned.

Co-authored-by: Lee Byron <lee@leebyron.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature 🚀 requires increase of "minor" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants