{"id":15569643,"url":"https://github.com/patrick91/apollo-ts-server-demo","last_synced_at":"2025-10-24T01:56:48.704Z","repository":{"id":146058229,"uuid":"617551787","full_name":"patrick91/apollo-ts-server-demo","owner":"patrick91","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-22T16:47:13.000Z","size":175,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T02:56:22.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/patrick91.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-22T16:12:49.000Z","updated_at":"2023-08-28T02:32:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e661799-4d75-4b43-a902-75842967993f","html_url":"https://github.com/patrick91/apollo-ts-server-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fapollo-ts-server-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fapollo-ts-server-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fapollo-ts-server-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fapollo-ts-server-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick91","download_url":"https://codeload.github.com/patrick91/apollo-ts-server-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241305431,"owners_count":19941152,"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","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-10-02T17:34:32.675Z","updated_at":"2025-10-24T01:56:43.674Z","avatar_url":"https://github.com/patrick91.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apollo Server Typescript Subgraph Template\n\n[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/WdJd2w?referralCode=xsbY2R)\n\nThis template can be used to quickly create an [Apollo Federation] subgraph with the [@apollo/subgraph] and [@apollo/server] packages. You can use this template from [Rover](https://www.apollographql.com/docs/rover/commands/template/) with `rover template use --template subgraph-typescript-apollo-server`.\n\n## What's Included\n\n- A basic, [Apollo Federation] subgraph with simple examples for queries, entities, and mutations. You can run this subgraph with `npm start`.\n- [nodemon] is setup for `npm run dev` for a hot-reloading development environment.\n- Example tests in the `src/__tests__` directory. You can run these tests with `npm run test`.\n- GitHub Actions workflows which will:\n  - Run `npm run test` on every push.\n  - Check the schema against Apollo Studio on every push.\n  - Publish the subgraph to Apollo Studio on every push to the `main` branch.\n- [GraphQL Code Generator] pre-configured as a `build` step.\n\n## Next Steps\n\n- Setup project with `npm install`\n  - This will also run the `postinstall` script which will run `codegen` and compile the project\n- Download [Rover] and start it using the command printed out from `cargo run` to start a local version of Apollo Explorer.\n- Replace \"name\" in `package.json` with the name of your subgraph.\n- Start filling in your own schema in `schema.graphql`.\n- Start filling in your own types and resolvers in `src/resolvers`.\n- Set these secrets in GitHub Actions to enable all checks:\n  - `APOLLO_KEY`: An Apollo Studio API key for the supergraph to enable schema checks and publishing of the subgraph.\n  - `APOLLO_GRAPH_REF`: The name of the supergraph in Apollo Studio.\n  - `PRODUCTION_URL`: The URL of the deployed subgraph that the supergraph gateway will route to.\n- Remove the if: false lines from .github/workflows/checks.yaml and .github/workflows/deploy.yaml to enable schema checks and publishing.\n- Write your custom deploy logic in `.github/workflows/deploy.yaml`.\n- Send the Router-Authorization header [from your Cloud router](https://www.apollographql.com/docs/graphos/routing/cloud-configuration#managing-secrets) and set the ROUTER_SECRET environment variable wherever you deploy this to.\n\n[apollo federation]: https://www.apollographql.com/docs/federation/\n[@apollo/server]: https://www.apollographql.com/docs/apollo-server/\n[@apollo/subgraph]: https://www.apollographql.com/docs/federation/subgraphs\n[rover]: https://www.apollographql.com/docs/rover/\n[nodemon]: https://www.npmjs.com/package/nodemon\n[GraphQL Code Generator]: https://www.the-guild.dev/graphql/codegen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick91%2Fapollo-ts-server-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick91%2Fapollo-ts-server-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick91%2Fapollo-ts-server-demo/lists"}