{"id":20140442,"url":"https://github.com/graphql-portal/gateway-usage-example","last_synced_at":"2026-06-09T15:02:29.304Z","repository":{"id":40927883,"uuid":"334961122","full_name":"GraphQL-Portal/gateway-usage-example","owner":"GraphQL-Portal","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T23:12:00.000Z","size":1358,"stargazers_count":1,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T15:08:07.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/GraphQL-Portal.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2021-02-01T13:37:13.000Z","updated_at":"2021-02-24T10:51:54.000Z","dependencies_parsed_at":"2023-02-08T03:17:17.231Z","dependency_job_id":null,"html_url":"https://github.com/GraphQL-Portal/gateway-usage-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GraphQL-Portal/gateway-usage-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphQL-Portal%2Fgateway-usage-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphQL-Portal%2Fgateway-usage-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphQL-Portal%2Fgateway-usage-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphQL-Portal%2Fgateway-usage-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GraphQL-Portal","download_url":"https://codeload.github.com/GraphQL-Portal/gateway-usage-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphQL-Portal%2Fgateway-usage-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34112225,"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-06-09T02:00:06.510Z","response_time":63,"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-13T21:51:45.545Z","updated_at":"2026-06-09T15:02:29.276Z","avatar_url":"https://github.com/GraphQL-Portal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gateway usage example\nThe example shows how to setup configs for the gateway to merge different services into single GraphQL endpoint.\n## External dependencies\n### Redis\nYou should have a correct endpoint to a running Redis instance in `./config/gateway.yaml:redis_connection_string`.\n\n## Run\nInstall dependencies: `yarn`\\\nStart services to merge: `yarn start-services`\\\nStart the gateway: `yarn start` (or `portal` if you have installed it globally)\n\n## Details\nThere are three example services: user and product services are independent, order service manages the relation between users and products.\\\nUser and product service APIs are described using OpenAPI(Swagger) yaml-documents, Order API endpoint is described using JSONSchema.\\\nEach service has its own config in `./config/sources/`, they are described using [graphql-mesh](https://github.com/Urigo/graphql-mesh) handler's subset of config.\\\nServices are merged in an API `./config/apis/api.yaml`.\\\nApi config has additional definitions and resolver.\\\nResolver `./resolvers/orders.js` defines how the gateway will merge data from different services into one GraphQL type.\\\nOther types are generated in runtime using graphql-mesh.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-portal%2Fgateway-usage-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-portal%2Fgateway-usage-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-portal%2Fgateway-usage-example/lists"}