Hacker News new | ask | show | jobs
by antholeole 1604 days ago
Something I’ve been wondering: does graphQL Zeus increase code size as schema grows? I get that there’s a constant code size for the package, but I’m running on cloudflare workers for some processes, and scripts have a limit of 1MB. I’m using Hasura, so the gql schema is quite large. I’d like to switch over to Zeus for typings, but I’m worried it’ll push me over the 1MB limit.
1 comments

how big is your schema then? Of course code grows as schema grows as it is translated to TS. However productivity boost is huge.

If you want to use it with bigger than 1mb schemas create an issue , maybe we can split it to more files if that works for this limit

Not sure about “of course” - TS gets erased at runtime, so while “of course” it’ll increase the pre-compiled code size, it’s not so easy post compile.

If you weren’t aware, you can’t run TS directly - you have to compile it to JS for execution