-
Notifications
You must be signed in to change notification settings - Fork 257
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
misleading composition hints when using @interfaceObject
#2397
Comments
Oh hey, I actually reported this yesterday in rover! |
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
@sachindshinde: noticed you were set as assignee, so hope you don't mind, but took the liberty to create a quick PR for this (#2412) since I was looking at this, it's fairly trivial to fix, and it's ultimately my fault for forgetting to update this in the |
@pcmanus No worries there, thanks for the quick fix! I'm down to review 🙂 |
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
Given a simple schema
We are getting misleading composition hints:
It looks like the hints are unaware that
Inventory
interface is an entity so the differences in fields are expected.Repro available in apollographql/apollo-federation-subgraph-compatibility repo (
apollo-server
andfederation-jvm
implementations were updated to v2.3 tests).To run tests, execute following make target from root dir:
The text was updated successfully, but these errors were encountered: