Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation to refer to the Apollo Federation example with Spring for GraphQL #384

Closed
ragavlatha opened this issue May 9, 2022 · 5 comments
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@ragavlatha
Copy link

Is there any example project with Spring GraphQL on how to configure the service inorder to be used with a federation library like Apollo ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 9, 2022
@MariuszCwikla
Copy link

MariuszCwikla commented May 12, 2022

@ragavlatha It's pretty straightforward. Have a look at my repository that I used few weeks ago to report an issue https://github.com/MariuszCwikla/spring-graphql-federation-union-issue

@Bean 
public GraphQlSourceBuilderCustomizer exposeFederation () {
return builder -> {
	builder.schemaFactory((registry, wiring)-> 
			Federation.transform(registry, wiring).build()
		);
       };
}

This repo does not present how to build federated supergraph but actually it's straighforward to do it with Apollo Router.

@rstoyanchev
Copy link
Contributor

We don't have an example, but would be good to have it, possibly at apollographql/federation-jvm.

@rstoyanchev rstoyanchev added type: documentation A documentation task type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged type: documentation A documentation task labels May 13, 2022
@rstoyanchev rstoyanchev added this to the 1.0 Backlog milestone May 13, 2022
@dariuszkuc
Copy link
Contributor

Hello 👋
I created an example integration under https://github.com/apollographql/federation-jvm-spring-example.

@bclozel bclozel added type: documentation A documentation task and removed type: enhancement A general enhancement labels Jan 12, 2023
@bishopmate
Copy link

@rstoyanchev
Copy link
Contributor

@dariuszkuc a belated thanks for putting that together! @bishopmate the link does work for me. I'm going to turn this into a documentation task to refer to the above sample from our reference docs.

@rstoyanchev rstoyanchev changed the title Example to use Spring GraphQL with a federation library Update documentation to refer to the Apollo Federation example with Spring for GraphQL Apr 12, 2023
@rstoyanchev rstoyanchev self-assigned this Apr 12, 2023
@rstoyanchev rstoyanchev modified the milestones: 1.2 Backlog, 1.1.4 Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

7 participants