Skip to content

Best way to bundle queries for client #1252

Answered by kitten
dios-david asked this question in Q&A
Discussion options

You must be logged in to vote

I'd suggest to just measure what precompilation does on your end. Typically the GraphQL parser is fast enough that the timing of parsing isn't too significant.

If you're already using GraphQL Code Generator or similar tools then setting up precompilation is really simple too.

Aliasing is a good shout to remove the parser from the bundle output once you do have precompilation.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Comment options

You must be logged in to vote
2 replies
@kitten
Comment options

@Warxcell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants