How to use Envelop for server-side rendering #2250
Unanswered
vladinator1000
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi! Thank you for reaching out! Are you using Graphql Yoga for your server ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks, I have this Remix app that uses Apollo client with SchemaLink to avoid the network. It's running in Cloudflare Pages.
I'm creating my client for server rendering like this
How do you set up envelop with Apollo client (not server)? I can't figure it out. My goal is to use the same middleware for both server rendering and
/graphql
endpoints. Things like tracing, query authorization, etc.I did find this workers API example, but I couln't find anything on server-side rendering.
I read the SchemaLink source and it looks like it doesn't include a way to override
execute
andvalidate
. I could write my own "EnvelopSchemaLink" based on that but I'm curious how everyone else handles server-side rendering. I'm porting a large Apollo app so I'm stuck with it for better or worse.Beta Was this translation helpful? Give feedback.
All reactions