Stitching schema with multiple endpoints same returning type is not working #2882
-
Hello, I'm trying to stitch multiple schemas and one of them defines 2 endpoints that return the same type:
Insurance service:
Origination service:
I tried to do what the doc says here: https://www.graphql-tools.com/docs/stitch-type-merging/#multiple-keys or here https://github.com/gmac/schema-stitching-handbook/tree/master/type-merging-multiple-keys#multiple-entrypoints
but i can't make it work.... When executing the following query it does not load the masterPartner info...and the Partner service is not called at all...
What am i doing wrong? 🤔 Not sure if this is related to #2515 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
You are using key and argsFromKeys but you are not delegating to a list, I think you need to just use args, which you have commented out. Is that not working either? In this example, you shouldn’t need multiple entry points, as you have the id so you can just use masterPartnerById you need merge config for the insurance schema, which is tricky as seems like the type is nested in this schema. You may need to use a transform. Some sample data may help me understand |
Beta Was this translation helpful? Give feedback.
You are using key and argsFromKeys but you are not delegating to a list, I think you need to just use args, which you have commented out. Is that not working either?
In this example, you shouldn’t need multiple entry points, as you have the id so you can just use masterPartnerById
you need merge config for the insurance schema, which is tricky as seems like the type is nested in this schema. You may need to use a transform. Some sample data may help me understand