-
Notifications
You must be signed in to change notification settings - Fork 110
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
Generate static typename for element metadata key value pairs #876
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Quality Gate passedIssues Measures |
I have read the CLA Document and I hereby sign the CLA |
@fashxp do you have any idea why it is unique? |
@mattamon no, I have no idea. |
@fashxp okay thanks! So basically this would also be a breaking change no? |
@mattamon Personally, I would not categorize this as a breaking change.
|
I would agree with @cornedor. |
I cannot, but there are some very creative solutions out there. :) |
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.
Thank you very much for clearing this up!
Element metadata key/value pairs generate different __typename's on each request. This behavior makes it very hard if you need to work with the type.
This behavior also causes issues with Apollo Router, causing it to return null instead of the value since the typename does not match the loaded super graph.
The response is always the same type, an object with two strings, name and value, so there is no need to generate separate type names on each request.