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

Fix generating misleading "value type" hint on entity interfaces #2412

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Feb 21, 2023

The code that generates the INCONSISTENT_INTERFACE_VALUE_TYPE_FIELD was run inconditionally on all interfaces. However, with the introduction of @interfaceObject and @key on interfaces, we now essentially support "entity" interfaces, and it is misleading to generate this hint for those interfaces. This commit fixes that.

Fixes #2397

The code that generates the `INCONSISTENT_INTERFACE_VALUE_TYPE_FIELD`
was run inconditionally on all interfaces. However, with the
introduction of `@interfaceObject` and `@key` on interfaces, we now
essentially support "entity" interfaces, and it is misleading to
generate this hint for those interfaces. This commit fixes that.

Fixes apollographql#2397
@netlify
Copy link

netlify bot commented Feb 21, 2023

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d32738a

@changeset-bot
Copy link

changeset-bot bot commented Feb 21, 2023

🦋 Changeset detected

Latest commit: d32738a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@apollo/composition Patch
@apollo/gateway Patch
@apollo/federation-internals Patch
@apollo/query-planner Patch
@apollo/query-graphs Patch
@apollo/subgraph Patch
apollo-federation-integration-testsuite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

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.

misleading composition hints when using @interfaceObject
2 participants