{"id":25919681,"url":"https://github.com/egocentryk/graphql-code-first-approach","last_synced_at":"2026-06-05T03:32:29.888Z","repository":{"id":280290614,"uuid":"940048982","full_name":"egocentryk/graphql-code-first-approach","owner":"egocentryk","description":"Code-first approach to creating GraphQL APIs with Nest. It contains GraphQL concepts, tips \u0026 tricks, and patterns to create your own enterprise-grade GraphQL APIs.","archived":false,"fork":false,"pushed_at":"2025-03-02T14:40:07.000Z","size":541,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-02T15:23:09.609Z","etag":null,"topics":["dataloader","field-resolver","graphql","interfaces","middleware","resolvers","scalar-types","subscriptions","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/egocentryk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T14:32:06.000Z","updated_at":"2025-03-02T14:40:10.000Z","dependencies_parsed_at":"2025-03-02T15:23:35.704Z","dependency_job_id":"cbe662dc-02bb-47c6-82ff-6038f3bf8bd7","html_url":"https://github.com/egocentryk/graphql-code-first-approach","commit_stats":null,"previous_names":["egocentryk/graphql-code-first-approach"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egocentryk%2Fgraphql-code-first-approach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egocentryk%2Fgraphql-code-first-approach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egocentryk%2Fgraphql-code-first-approach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egocentryk%2Fgraphql-code-first-approach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egocentryk","download_url":"https://codeload.github.com/egocentryk/graphql-code-first-approach/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241686831,"owners_count":20003112,"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":["dataloader","field-resolver","graphql","interfaces","middleware","resolvers","scalar-types","subscriptions","typescript"],"created_at":"2025-03-03T15:15:48.043Z","updated_at":"2026-06-05T03:32:29.528Z","avatar_url":"https://github.com/egocentryk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo-small.svg\" width=\"120\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Project description\n\nCode-first approach to creating GraphQL APIs with [Nest](https://github.com/nestjs/nest). It contains GraphQL concepts, tips \u0026 tricks, and\npatterns to create your own enterprise-grade GraphQL APIs.\n\n## Project setup\n\n```bash\n$ pnpm install\n```\n\n## Docker\n\n```bash\n$ docker-compose up -d\n```\n\n-d flag stands for detached mode: run containers in the background\n\n## GraphQL operation types\n\n### Queries\n\n```graphql\n{\n  coffees {\n    id\n    name\n    brand\n    flavors {\n      id\n      name\n    }\n    createdAt\n  }\n}\n\nquery ($coffeeId: ID!) {\n  coffee(id: $coffeeId) {\n    id\n    name\n    brand\n    flavors {\n      name\n    }\n    createdAt\n  }\n}\n\n{\n  drinks {\n    ... on Tea {\n      name\n    }\n    ... on Coffee {\n      name\n      brand\n    }\n  }\n}\n```\n\n### Mutations\n\n```graphql\nmutation {\n  createCoffee(\n    createCoffeeInput: {\n      name: \"Caramel Coffee\"\n      brand: \"Jacobs\"\n      flavors: [\"carameal\", \"sweat\", \"creamy\"]\n      type: AMERICANO\n    }\n  ) {\n    id\n    name\n    brand\n    flavors {\n      name\n    }\n    createdAt\n  }\n}\n\nmutation {\n  updateCoffee(\n    id: 1\n    updateCoffeeInput: { name: \"Cappuccino\", flavors: [\"milky\"] }\n  ) {\n    name\n    flavors {\n      name\n    }\n  }\n}\n\nmutation {\n  removeCoffee(id: 1) {\n    name\n  }\n}\n```\n\n### Subscription\n\n```graphql\nsubscription {\n  coffeeAdded {\n    id\n    name\n    brand\n  }\n}\n```\n\n## Deployment\n\nCheck out [Mau](https://mau.nestjs.com), Nest official platform for deploying NestJS applications on AWS.\n\n## Resources\n\nCheck out a few resources that may come in handy when working with NestJS:\n\n- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.\n- Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.\n- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).\n\n## License\n\nNest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegocentryk%2Fgraphql-code-first-approach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegocentryk%2Fgraphql-code-first-approach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegocentryk%2Fgraphql-code-first-approach/lists"}