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.

Incorrect __typename type

See original GitHub issue

In the following, __typename should be possibly undefined.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
remorsescommented, Mar 24, 2021

Tell me if i understood correctly, you want the __typename field to be Type instead of Type | undefined when you are explicitly querying __typename, is this right?

0reactions
jasonkuhrtcommented, Mar 24, 2021

Yeah

Read more comments on GitHub >

github_iconTop Results From Across the Web

__typename field prevents updates · Issue #1564 ... - GitHub
Hi, High-level issue: appended __typename field causes errors when updating. Details: When retrieving data for a custom address type, ...
Read more >
How to remove __typename for a specific query - Help
Hello. I have the same problem, so actually it would be very helpful to strip typename from data. For example fetch it from...
Read more >
Inconsistent Typename Error - Relay
The best way to fix this is to make your type spec compliant. For the case of 2 different types backed by the...
Read more >
How to remove the `__typename` field from the graphql ...
If you're using a query results as initial state, you'll need to transform it first to strip out the __typename fields (and any...
Read more >
Dealing with __typename and mutations : r/graphql - Reddit
I have some cases in my graphql apps where I. query an object. object has an array on it of object types (thus...
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