Replies: 1 comment
-
I am not sure if this is related to graphql-tools. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We currently use graphql-codegen to generate React Hooks to query our GraphQL server.
Given we currently have 2 endpoints, we do a Split like so:
What this means is that we need to provide that serviceName context variable everyime we want to reach ServiceB.
Given we have 2 calls to graphql-codegen (one per Service that has their own schema / settings) is there a way to automatically add the baseOptions with the correct context.
Otherwise we need to keep doing this:
But I'd prefer if context had a default and I just did this:
I could not find any suitable config.
This is our config today:
Beta Was this translation helpful? Give feedback.
All reactions