Data returned by apollo service query does not include __typename
See original GitHub issueWhen your query contains the __typename
field is is stripped out.
This makes working with interfaces and store updates very hard.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
How to remove __typename for a specific query - Help
Fetching __typename is added automatically to queries and cannot be disabled because the cache requires it to be able to normalize the data....
Read more >__typename in query response · Issue #1913 · apollographql ...
I know and understand that apollo-client will add __typename automatically into the query. But my question is if it is all right that...
Read more >How to remove the `__typename` field from the graphql ...
You should fix this and set addTypename to true now. Asked and answered here: Apollo boost - __typename in query prevent new mutation....
Read more >GraphQL error handling to the max with Typescript, codegen ...
But now, we are returning different objects that will be mapped to the proper GraphQL type. And those objects are not tagged with...
Read more >API does not return `__typename` - Bugs - 8base
Reproduce the Issue: What steps can someone take to replicate the problem? · Go to API explorer · Query any data type and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@n1ru4l I’ve tested a query using
typename: __typename
and it worked. You can change the alias to what fits better to your case. And if this solves your problem, I think we could include this into the README as a caveat while we don’t have a proper solution.@bgentry Project got trashed, I do not think that I will use this library anytime soon. Sorry 😦