Using Apollo federation directives #191
Replies: 6 comments 5 replies
-
Hey @shamin2021, Thanks for reaching out. You need to set the type as FEDERATION_SUBGRAPH to activate the federation style stitching. Please try overriding the getServiceType() method in ServiceProvider interface |
Beta Was this translation helpful? Give feedback.
-
Schema 1 type Review { Schema 2 type Product @key(fields: "id") { I want to run query query { product (id : 1){ reviews { text } } } please let me know how i can Achieve this I am getting the following error |
Beta Was this translation helpful? Give feedback.
-
If you are planning to use this as a gateway, please use https://github.com/graph-quilt/graphql-gateway-java as the reference implementation. It has a few subgraphs in the local-registry folder, you modify the schema and play around with it. |
Beta Was this translation helpful? Give feedback.
-
pom dependencies are the problem in your case
|
Beta Was this translation helpful? Give feedback.
-
Thankyou so much this helped |
Beta Was this translation helpful? Give feedback.
-
Do we need to add a resolver schema as well ? to query two services? for an example |
Beta Was this translation helpful? Give feedback.
-
Can you please let me know how to stitch when I have schemas like below, Since i am getting an error in compilation
ERROR:Couldn't resolve reference to DirectiveDefinition 'key'. (schema.graphqls line : 1 column : 134)
These parsing issues were found in the following files.
Beta Was this translation helpful? Give feedback.
All reactions