-
I want to use the auto-generated Graphql with a federation Gateway and use the entities from others. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't think it is possible to access underlying entities through the Gateway but you can add all the federated subgraphs as sources to Mesh. Mesh will generate a federation gateway by handling those services just like Apollo's implementation does. So basically you can use GraphQL handler just like in this example; |
Beta Was this translation helpful? Give feedback.
I don't think it is possible to access underlying entities through the Gateway but you can add all the federated subgraphs as sources to Mesh. Mesh will generate a federation gateway by handling those services just like Apollo's implementation does.
There is nothing to setup for Mesh to handle federated subgraphs.
So basically you can use GraphQL handler just like in this example;
https://github.com/Urigo/graphql-mesh/blob/master/examples/federation-example/gateway/.meshrc.yml#L18