-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Clarify current ResolveAbstractType algorithm #973
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for graphql-spec-draft ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
add assertions from reference implementation
This PR attempts to clarify the current behavior. It can be seen as a prelude to #960 (which loosens the return type of the internal type system method to allow returning a transitive interface) -- but this PR might also be a helpful addition on its own. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some bike-shedding suggestions 😅
Co-authored-by: Benjie Gillam <[email protected]>
Motivation: IsSubType could be re-used in graphql#973
Motivation: IsSubType could be re-used in #973
Merged the dependent editorial change so you can use that change here. This feels like a real ambiguity in the spec that's getting resolved, nice catch! Can we confirm that these assertions already align to existing GraphQL.js behavior? |
This change is meant to capture existing behavior in graphql-js: see fn ensureValidRuntimeType @ |
@graphql/tsc ready for review |
pinging @graphql/tsc on this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 🙌
add assertions from current behavior of reference implementation