{"id":50283442,"url":"https://github.com/apollographql/federation-jvm-spring-example","last_synced_at":"2026-05-28T01:07:32.524Z","repository":{"id":37835797,"uuid":"499593993","full_name":"apollographql/federation-jvm-spring-example","owner":"apollographql","description":"Apollo Federation JVM example implementation using Spring for GraphQL","archived":false,"fork":false,"pushed_at":"2026-05-07T14:56:36.000Z","size":369,"stargazers_count":76,"open_issues_count":19,"forks_count":22,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-05-07T16:48:27.525Z","etag":null,"topics":["apollo-federation","graphql","java","spring-graphql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apollographql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-03T17:21:47.000Z","updated_at":"2025-09-10T23:48:42.000Z","dependencies_parsed_at":"2024-03-13T15:56:57.491Z","dependency_job_id":"2a009738-42df-4816-8d27-ad3df8917896","html_url":"https://github.com/apollographql/federation-jvm-spring-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apollographql/federation-jvm-spring-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollographql%2Ffederation-jvm-spring-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollographql%2Ffederation-jvm-spring-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollographql%2Ffederation-jvm-spring-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollographql%2Ffederation-jvm-spring-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apollographql","download_url":"https://codeload.github.com/apollographql/federation-jvm-spring-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollographql%2Ffederation-jvm-spring-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33589709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo-federation","graphql","java","spring-graphql"],"created_at":"2026-05-28T01:07:30.385Z","updated_at":"2026-05-28T01:07:32.516Z","avatar_url":"https://github.com/apollographql.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Federation JVM Spring Example\n\n[Apollo Federation JVM](https://github.com/apollographql/federation-jvm) example implementation using [Spring for GraphQL](https://docs.spring.io/spring-graphql/docs/current/reference/html/).\nIf you want to discuss the project or just say hi, stop by [the Apollo community forums](https://community.apollographql.com/).\n\nThe repository contains two separate projects:\n\n1. `products-subgraph`: A Java GraphQL service providing the federated `Product` type\n2. `reviews-subgraph`: A Java GraphQL service that extends the `Product` type with `reviews`\n\nSee individual projects READMEs for detailed instructions on how to run them.\n\nRunning the demo\n----\n\n1. Start `products-subgraph` by running the `ProductsApplication` Spring Boot app from the IDE or by running `./gradlew :products-subgraph:bootRun` from the root project directory\n2. Start `reviews-subgraph` by running the `ReviewsApplication` Spring Boot app from the IDE or `./gradlew :reviews-subgraph:bootRun` from the root project directory\n3. Start Federated Router\n   1. Install [rover CLI](https://www.apollographql.com/docs/rover/getting-started)\n   2. Start router and compose products schema using [rover dev command](https://www.apollographql.com/docs/rover/commands/dev)\n\n    ```shell\n    # start up router and compose products schema\n    rover dev --name products --schema ./products-subgraph/src/main/resources/graphql/schema.graphqls --url http://localhost:8080/graphql\n    ```\n\n   3. In **another** shell run `rover dev` to compose reviews schema\n\n    ```shell\n    rover dev --name reviews --schema ./reviews-subgraph/src/main/resources/graphql/schema.graphqls --url http://localhost:8081/graphql\n    ```\n\n4. Open http://localhost:3000 for the query editor\n\nExample federated query\n\n```graphql\nquery ExampleQuery {\n    products {\n        id\n        name\n        description\n        reviews {\n            id\n            text\n            starRating\n        }\n    }\n}\n```\n\n## Other Federation JVM examples\n\n* [Netflix DGS Federation Example](https://github.com/Netflix/dgs-federation-example)\n* [GraphQL Java Kickstart Federation Example](https://github.com/setchy/graphql-java-kickstart-federation-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapollographql%2Ffederation-jvm-spring-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapollographql%2Ffederation-jvm-spring-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapollographql%2Ffederation-jvm-spring-example/lists"}