1

I am facing issues in setting up Graphql Federation in SpringCloud Gateway.

I have created a Spring Cloud Server and a Eureka Client Server which connects to a Node Typescript microservice.

For Eureka Client in Nodejs, I have used eureka-js-client package, which enables the connection from Typescript Service to Eureka.

For enabling Federation in Springboot, I am using the following dependency.

`<dependency>
<groupId>com.apollographql.federation</groupId>
<artifactId>federation-graphql-java-support</artifactId>
<version>${federation-graphql-java-support.version}</version>
</dependency>`

from [https://github.com/apollographql/federation-jvm]

How do I make the NodeJS graphql Schema accessible to Spring cloud. Is there any other solution to create apollo layer in Spring cloud that creates a supergraph using all the subgraphs from the connected microservices(node).

I tried implementing federation-jvm package in Spring cloud but it fails to acknowledge the /graphql and schemas from different node services.

ideally, it should collate all the graphql schemas from all services and create a supergraph which is accessible through API gateway.

asked Aug 1, 2023 at 6:12

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.