v2 OK, v3 "The inferred type of this node exceeds the maximum length the compiler will serialize"

See original GitHub issue

Tried 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)

Bildschirmfoto 2021-11-10 um 09 54 10

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
aexolcommented, Dec 3, 2021

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

1reaction
aexolcommented, Nov 29, 2021

I found a solution! Stay tuned I am implementing it now.

Read more comments on GitHub >

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

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