Replies: 3 comments 3 replies
-
@maxbol |
Beta Was this translation helpful? Give feedback.
-
Can you share more of the use case? Context is usually identical. Info is an optional request property that in our usual use case will go unused in batch execution…. But I suppose your use case differs. prs always welcome |
Beta Was this translation helpful? Give feedback.
-
I didn’t quite get everything I’m afraid. Why does the subservice need the path exactly? What does it do with it? In general, What I should’ve said with regard to the original discussion is that if you were combining local Schema’s, you’re probably better off with schema merging or graphql modules and if you were combining remote schemas you can accomplish something similar to the above with Schema stitching, which works with remote schemas. Maybe an end to end example might help me. Maybe @ardatan or @gmac have more thoughts or better insight |
Beta Was this translation helpful? Give feedback.
-
Hi!
As per https://github.com/ardatan/graphql-tools/blob/master/packages/batch-execute/src/mergeRequests.ts#L107 , context and info for a batch request are always equal to the context and info parameters for the first request in the array.
Is there someway to circumvent this limitation to access the full array of info objects for all original requests in the batch execution, without forking and extending graphql-tools itself?
Cheers,
Max
Beta Was this translation helpful? Give feedback.
All reactions