{"id":21258151,"url":"https://github.com/cuongndc9/apollo-nodejs","last_synced_at":"2025-10-25T16:02:54.275Z","repository":{"id":116043958,"uuid":"198677913","full_name":"cuongndc9/apollo-nodejs","owner":"cuongndc9","description":"🔥💚 Using Apollo with NodeJS.","archived":false,"fork":false,"pushed_at":"2025-03-07T19:25:08.000Z","size":404,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-07T19:26:50.460Z","etag":null,"topics":["103cuong","apollo","apollo-nodejs","apollo-server","apollo-server-express","graphql","graphql-server","mutation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/cuongndc9.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}},"created_at":"2019-07-24T17:07:19.000Z","updated_at":"2025-03-07T19:25:11.000Z","dependencies_parsed_at":"2024-03-05T09:09:45.079Z","dependency_job_id":null,"html_url":"https://github.com/cuongndc9/apollo-nodejs","commit_stats":null,"previous_names":["cuonginspire/apollo-nodejs","cuongnd9/apollo-nodejs","cuongndc9/apollo-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fapollo-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fapollo-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fapollo-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fapollo-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuongndc9","download_url":"https://codeload.github.com/cuongndc9/apollo-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243691406,"owners_count":20331965,"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":["103cuong","apollo","apollo-nodejs","apollo-server","apollo-server-express","graphql","graphql-server","mutation"],"created_at":"2024-11-21T04:07:19.445Z","updated_at":"2025-10-25T16:02:54.175Z","avatar_url":"https://github.com/cuongndc9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"goodbye coding 👋\n# apollo-nodejs\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg)](#contributors)\n\n🔥💚 Using Apollo with NodeJS\n\n## Quick start\n\n### Install dependencies\n\n```sh\n$ yarn\n```\n\n### Run this app\n\n```sh\n$ yarn start\n```\n\n### Client\n\n1. Query, aliases and fragments\n\n![query1](./images/query1.png)\n\n```\nquery getCat($catId: Int!) {\n  cat(id: $catId) {\n    id\n    name\n    color\n  }\n}\n```\n\n![query2](./images/query2.png)\n\n```\nquery getCatWithFagments($catId1: Int!, $catId2: Int!) {\n  cat1: cat(id: $catId1) {\n    ...catFields\n  },\n  cat2: cat(id: $catId2) {\n    ...catFields\n  }\n}\n\nfragment catFields on Cat {\n  id\n  name\n  color\n}\n```\n\n![query3](./images/query3.png)\n\n```\nquery getCats($color:String) {\n  cats(color: $color) {\n    ...CatFields\n  }\n}\n\nfragment CatFields on Cat {\n\tname\n  color\n}\n```\n\n2. Mutation\n\n![mutation](./images/mutation.png)\n\n```\nmutation updateCatColor($id: Int!, $newColor: String!) {\n  updateCatColor(id: $id, newColor: $newColor) {\n    ...catFields\n  }\n}\n\nfragment catFields on Cat {\n  id\n  name\n  color\n}\n```\n\n🙌 Awesome\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\u003ctr\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"http://cuongw.me\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/34389409?v=4\" width=\"100px;\" alt=\"Cuong Duy Nguyen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCuong Duy Nguyen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/cuongw/thinid/commits?author=cuongw\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/cuongw/thinid/commits?author=cuongw\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/cuongw/thinid/commits?author=cuongw\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#review-cuongw\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\nMIT © [Cuong Nguyen](https://www.linkedin.com/in/cuong9/)\n\n\n\u003c!-- INSPIRATIONAL_QUOTE_START --\u003e\n\u003e \"The only way to do great work is to love what you do.\" - Steve Jobs\n\u003c!-- INSPIRATIONAL_QUOTE_END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongndc9%2Fapollo-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuongndc9%2Fapollo-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongndc9%2Fapollo-nodejs/lists"}