{"id":19521026,"url":"https://github.com/rodneylab/fastify-mercurius-nexus-graphql-api","last_synced_at":"2025-04-26T08:31:08.534Z","repository":{"id":108599124,"uuid":"518859962","full_name":"rodneylab/fastify-mercurius-nexus-graphql-api","owner":"rodneylab","description":"GraphQL API demo using Fastify, Mercurius and Nexus","archived":false,"fork":false,"pushed_at":"2025-02-03T18:09:50.000Z","size":548,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T10:04:49.244Z","etag":null,"topics":["api","docker","docker-compose","fastify","graphql","graphql-api","mercurius","nexus","postgresql","prisma","typescript","uvu"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodneylab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-28T13:34:58.000Z","updated_at":"2025-02-03T18:09:55.000Z","dependencies_parsed_at":"2024-11-11T00:29:04.168Z","dependency_job_id":"24fd01c4-541a-48cc-918f-e28851d3f6a9","html_url":"https://github.com/rodneylab/fastify-mercurius-nexus-graphql-api","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/rodneylab%2Ffastify-mercurius-nexus-graphql-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Ffastify-mercurius-nexus-graphql-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Ffastify-mercurius-nexus-graphql-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodneylab%2Ffastify-mercurius-nexus-graphql-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodneylab","download_url":"https://codeload.github.com/rodneylab/fastify-mercurius-nexus-graphql-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250959551,"owners_count":21514288,"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":["api","docker","docker-compose","fastify","graphql","graphql-api","mercurius","nexus","postgresql","prisma","typescript","uvu"],"created_at":"2024-11-11T00:28:52.415Z","updated_at":"2025-04-26T08:31:08.528Z","avatar_url":"https://github.com/rodneylab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./images/rodneylab-github-fastify-mercurius-nexus-graphql.png\" alt=\"Rodney Lab fastify-mercurius-nexus-graphql Github banner\"\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca aria-label=\"Open Rodney Lab site\" href=\"https://rodneylab.com\" rel=\"nofollow noopener noreferrer\"\u003e\n    \u003cimg alt=\"Rodney Lab logo\" src=\"https://rodneylab.com/assets/icon.png\" width=\"60\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  Fastify Mercurius Nexus GraphQL\n\u003c/h1\u003e\n\n# fastify-mercurius-nexus-graphql\n\nDemo for Node GraphQL API using Fastify, TypeScript, Mercurius and Nexus. The\ncode accompanies the\n\u003ca aria-label=\"Open Rodney Lab blog post on using Fastify Graph Q L A P I Stack\" href=\"https://rodneylab.com/fastify-graphql-api-stack/\"\u003earticle\non Fastify GraphQL API Stack\u003c/a\u003e. If you have any questions, please drop a\ncomment at the bottom of that page.\n\n# GraphQL API demo using Fastify, Mercurius and Nexus\n\n## Run Development Server\n\nCopy `.env.dev.EXAMPLE` and `.env.test.EXAMPLE` to `.env.dev` and `.env.test`\nand update `docker-compose.yml` with your own credentials.\n\n```shell\npnpm run dev\n```\n\nTo test a GraphQL query, navigate to\n[http://localhost:4000/graphiql](http://localhost:4000/graphiql) in your browser.\n\n## Run Tests\n\nStop the dev server then run\n\n```shell\npnpm test\n```\n\nYou can add additional tests under the `tests` folder.\n\n## Test queries\n\n### Queries\n\n```graphql\n{\n\tdrafts {\n\t\tid\n\t\ttitle\n\t\tbody\n\t\tpublished\n\t}\n}\n```\n\n```graphql\nquery {\n\tposts {\n\t\tid\n\t\ttitle\n\t\tbody\n\t\tpublished\n\t}\n}\n```\n\n### Mutations\n\n```graphql\nmutation {\n\tcreateDraft(title: \"Nexus\", body: \"...\") {\n\t\tid\n\t\ttitle\n\t\tbody\n\t\tpublished\n\t}\n}\n```\n\n```graphql\nmutation {\n\tdeleteDraft(draftId: 1)\n}\n```\n\n```graphql\nmutation {\n\tpublish(draftId: 1) {\n\t\tid\n\t\ttitle\n\t\tbody\n\t\tpublished\n\t}\n}\n```\n\nFeel free to jump into the\n[Rodney Lab matrix chat room](https://matrix.to/#/%23rodney:matrix.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodneylab%2Ffastify-mercurius-nexus-graphql-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodneylab%2Ffastify-mercurius-nexus-graphql-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodneylab%2Ffastify-mercurius-nexus-graphql-api/lists"}