Skip to content

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Aug 2, 2022

Motivation: IsSubType could be re-used within ResolveAbstractType when its behavior is clarified. See: #973.

@netlify
Copy link

netlify bot commented Aug 2, 2022

Deploy Preview for graphql-spec-draft ready!

Name Link
🔨 Latest commit 2884863
🔍 Latest deploy log https://app.netlify.com/sites/graphql-spec-draft/deploys/62e87be02aedfb00086feba1
😎 Deploy Preview https://deploy-preview-977--graphql-spec-draft.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@leebyron leebyron added the ✏️ Editorial PR is non-normative or does not influence implementation label Sep 1, 2022
@leebyron leebyron merged commit 3aa021f into graphql:main Sep 1, 2022
@leebyron
Copy link
Collaborator

leebyron commented Sep 1, 2022

Nice!

Confirming that this aligns to the existing https://github.com/graphql/graphql-js/blob/main/src/type/schema.ts#L311 in the ref impl.

This IsValidImplementationFieldType() is in large part directly mapping to https://github.com/graphql/graphql-js/blob/a24a9f35b876bdd0d5050eca34d3020bd0db9a29/src/utilities/typeComparators.ts#L38 which maps well to the change you proposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✏️ Editorial PR is non-normative or does not influence implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants