How can I reuse the Context when using apollo-link-schema for server-side-rendering?
I am struggling when I want to use apollo-link-schema
for Server Side Rendering, because the context in my resolver functions is undefined
when they are called. Therefore I cannot resolve stuff from my database, because therefore I need the dataSources from the context of the ApolloServer.
Somehow it is strange, that it is required to put the context to the schema link again, basically I just want to call my "ApolloServer", which is configured with all needed contexts, from within the same server.
I couldn't find much about this topic, can someone pls help me achieving Server Side Rendering with accessing the ApolloServer Context in my resolver functions when using apollo-link-schema
?
Thanks and Cheers!
1460 views