{"id":20877477,"url":"https://github.com/t1/smallrye-graphql-federation-demo","last_synced_at":"2026-07-28T19:31:46.338Z","repository":{"id":142921374,"uuid":"531875573","full_name":"t1/smallrye-graphql-federation-demo","owner":"t1","description":"Demo project to show the GraphQL Federation backend support in SmallRye GraphQL","archived":false,"fork":false,"pushed_at":"2025-09-30T12:48:13.000Z","size":42590,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-30T14:47:10.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t1.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"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-09-02T10:10:42.000Z","updated_at":"2025-09-30T12:48:02.000Z","dependencies_parsed_at":"2023-10-23T15:38:28.637Z","dependency_job_id":"8ade5715-70f7-4230-b076-e6ffcf23471a","html_url":"https://github.com/t1/smallrye-graphql-federation-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/t1/smallrye-graphql-federation-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fsmallrye-graphql-federation-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fsmallrye-graphql-federation-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fsmallrye-graphql-federation-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fsmallrye-graphql-federation-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1","download_url":"https://codeload.github.com/t1/smallrye-graphql-federation-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fsmallrye-graphql-federation-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001514,"owners_count":26083118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2024-11-18T06:57:08.131Z","updated_at":"2025-10-09T14:34:41.910Z","avatar_url":"https://github.com/t1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= SmallRye GraphQL Federation Demo image:https://github.com/t1/smallrye-graphql-federation-demo/actions/workflows/maven.yml/badge.svg[link=https://github.com/t1/smallrye-graphql-federation-demo/actions/workflows/maven.yml]\n\nThis is a little demo project to show the GraphQL Federation backend support in https://github.com/smallrye/smallrye-graphql[SmallRye GraphQL].\n\n== Parts\n\n* `product` GraphQL backend `war`: serves the name and the description.\n* `price` GraphQL backend `war`: extends the product by a price.\n* `order` GraphQL backend `war`: uses products for the order items.\n* `gateway` GraphQL Federation server: combines the three backends (subgraphs) into One API (supergraph).\n* `printer` Quarkus GraphQL CLI client: calls the gateway to print an order with all details.\n\n== Test \u0026 Run\n\nJust run `mvn verify`.\n\nBut you can deploy the three `war` files to any https://jakarta.ee[Jakarta EE 10] server with https://github.com/eclipse/microprofile-graphql[MicroProfile GraphQL] support, e.g. https://www.wildfly.org/downloads/[WildFly] with the https://github.com/wildfly-extras/wildfly-graphql-feature-pack[GraphQL Feature Pack]. We use my WildFly Docker Image `rdohna/wildfly:latest` via https://github.com/t1/jee-testcontainers[JEE Testcontainers].\n\nThe `gateway` uses https://wundergraph.com[Wundergraph]. To start it, run:\n\n[source,bash]\n----\n./gateway/router\n----\n\nThen the UI runs on http://localhost:3002 and you can execute, e.g.:\n\n[source,graphql]\n----\nquery order1 {\n  order(id:\"1\") {\n    customerNumber\n    customerName\n    orderDate\n    orderItems {\n      position\n      amount\n      product {\n        name\n        description\n        price\n      }\n    }\n  }\n}\n----\n\nIf you change the schema, you'll have to regenerate the `config.json`. You'll need `wgc` for that:\n\n[source,bash]\n----\nnpm install -g wgc@latest\n----\n\nThen run (while the three services are running):\n\n[source,bash]\n----\nwgc router compose -i compose.yaml -o config.json\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1%2Fsmallrye-graphql-federation-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1%2Fsmallrye-graphql-federation-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1%2Fsmallrye-graphql-federation-demo/lists"}