Executor with a locally defined schema pattern #3750
Replies: 2 comments 3 replies
-
I think my question is similar to this one: #2930 Where introspection query for remote server is still needed but it is done inside a resolver which. I can get behind that. I will take a look at the example discussed there. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@ardatan here is a repro repo https://github.com/DianaSuvorova/wrap/blob/main/index.js I'd be happy to try to add actual test if I can figure out how to run it locally -> doing |
Beta Was this translation helpful? Give feedback.
-
I think this pattern should exist or be possible.
So I would like to use an executor patter , ie delegate all queries to a remote GraphQL server in runtime, yet I would to store a copy of its schema locally. ie I don't want to do an introspection query.
Here is an example of a code that does not work with
targetSchema.getQueryType is not a function
That this does not work makes sense but I think there should be a pattern that would allow to connect remote executor and local schema.
Thank you 🙏
Beta Was this translation helpful? Give feedback.
All reactions