v2 OK, v3 "The inferred type of this node exceeds the maximum length the compiler will serialize"
See original GitHub issueTried to upgrade to v3 again today, but I can’t get it to work. v2 works great with my Hasura based GraphQL schema and apollo. As soon as I grab the types from v3 generated code, I’m getting:
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.ts(7056)
The code is pretty much the same to the apollo example in your repository. I’m not sure what the exact differences are besides v3 not exporting single types any more (unfortunately).
Related: https://github.com/graphql-editor/graphql-zeus/issues/178 https://github.com/graphql-editor/graphql-zeus/issues/189
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Typescript: "The inferred type of this node exceeds the ...
Typescript: "The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.".
Read more >$extends TS error: "Inferred type of this node exceeds ... - GitHub
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed. This error also...
Read more >Typescript is for big simple projects, not small complex ones.
“The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.”.
Read more >Problems with TypeScript - Hacker News
Typescripts inferred types, can do some crazy things, and can be very powerful. ... the type is known to the compiler at compile...
Read more >R News - The Comprehensive R Archive Network
Serialization format version 2 is still supported and can be selected by ... allow the maximal size of the vector heap and the...
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 Free
Top 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
@bkniffler 4.0.0 deploying now. I did crucial change to support huge schemas. You will need to change syntax just a little bit. Please refer to readme. Apollo and react query also works with big schemas now.
I found a solution! Stay tuned I am implementing it now.