question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data returned by apollo service query does not include __typename

See original GitHub issue

When your query contains the __typename field is is stripped out. This makes working with interfaces and store updates very hard.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
viniciussbscommented, Jun 28, 2017

@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.

0reactions
n1ru4lcommented, Sep 5, 2017

@bgentry Project got trashed, I do not think that I will use this library anytime soon. Sorry 😦

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found