ember-apollo-client: Data returned by apollo service query does not include __typename
When your query contains the __typename field is is stripped out.
This makes working with interfaces and store updates very hard.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Fixes #34 Adds custom copy function which wraps the ember copy function — committed to n1ru4l/ember-apollo-client by n1ru4l 7 years ago
- also copy __typename when deep copying query results Fixes #34. — committed to ember-graphql/ember-apollo-client by bgentry 7 years ago
- also copy __typename when deep copying query results Fixes #34. — committed to ember-graphql/ember-apollo-client by bgentry 7 years ago
@n1ru4l I’ve tested a query using
typename: __typenameand 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.