Replies: 3 comments 3 replies
-
Hmmm. I guess you are having trouble merging types that don’t have any keys like your wrapper types. This should definitely be possible and if it isn’t, you can probably create a custom merge resolver that does it? It might be a feature request, I will have to take a deeper look. A reproduction might help to get things going |
Beta Was this translation helpful? Give feedback.
-
1 we find one subservice for each field as we go, so if you have overlapping namespace, it should pick one, and then should automatically select appropriate subservice for each field just like Query. have to take a closer look to see why this is not happening 2 using different as subschemas depending on argument is tricky, maybe you could use transforms to rename subschemas and then introduce on gateway a custom merge resolver that delegates as appropriate 3 you should be able to pass additional typedefs and resolvers to s to stitchschemas |
Beta Was this translation helpful? Give feedback.
-
In 2 transforms to rename fields for each subschema. Or maybe the custom merge resolver would figure it out without renaming |
Beta Was this translation helpful? Give feedback.
-
Good afternoon.
I have a question about using stitchSchemas with namespaced queries and mutations.
I have 2 remote services:
and
Thus, when using stitchSchemas in my proxy service, a function for obtaining a stitched schema appeared:
Which allows me to fulfill the request:
However, none of the combination of
merge
options of these subcircuits specified in the documentation and examples of use returned me the required answer.I assume that the problem is precisely in the namespaced types.
Please help me specify the correct settings for
merge
options or share a link to a solution to a similar problemBeta Was this translation helpful? Give feedback.
All reactions