{"id":23067193,"url":"https://github.com/dinushchathurya/nodejs-graphql","last_synced_at":"2026-04-15T05:31:32.014Z","repository":{"id":99309608,"uuid":"502235297","full_name":"dinushchathurya/nodejs-graphql","owner":"dinushchathurya","description":"Simple NodeJS \u0026 GraphQL API","archived":false,"fork":false,"pushed_at":"2022-06-14T10:57:34.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T19:50:43.305Z","etag":null,"topics":["express","express-graphql","graphql","graphql-express-nodejs","mongo","mongoose","nodejs","nodejs-graphql"],"latest_commit_sha":null,"homepage":"","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/dinushchathurya.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,"zenodo":null}},"created_at":"2022-06-11T02:58:13.000Z","updated_at":"2023-12-16T11:40:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2e80ce6-a787-42e9-b37d-8adc8ca23ae4","html_url":"https://github.com/dinushchathurya/nodejs-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dinushchathurya/nodejs-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fnodejs-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fnodejs-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fnodejs-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fnodejs-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinushchathurya","download_url":"https://codeload.github.com/dinushchathurya/nodejs-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinushchathurya%2Fnodejs-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31828530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","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":["express","express-graphql","graphql","graphql-express-nodejs","mongo","mongoose","nodejs","nodejs-graphql"],"created_at":"2024-12-16T05:16:17.782Z","updated_at":"2026-04-15T05:31:31.993Z","avatar_url":"https://github.com/dinushchathurya.png","language":"JavaScript","readme":"## Simple NodeJS GraphQL API with ExpressJS and MongoDB\n\n### Install backend dependencies\n\n```\nnpm install\n```\n\n### Add Mongo URI \n\nIf you're going to use MongoDB, create a database with Atlas, add it to the .env.example file and rename the file to .env\n\n### Run Application\n\n```\nnpm run dev\n```\n\nThen navigate to http://localhost:5000/graphql\n\n### Queries \u0026 Mutations\n\n\n#### Get all clients\n\n```\n{\n    clients {\n        name\n    }\n}\n```\n#### Get client by id\n\n```\n{\n    client(id: 1) {\n        name\n        email\n    }\n}\n```\n\n#### Get a single project name, description along with the client name and email\n\n```\n{\n    project(id: 1) {\n        name\n        description,\n        client {\n            name\n            email\n        }\n    }\n}\n```\n\n#### Create a new client and return all data\n\n```\nmutation {\n    addClient(name: \"John Doe\", email: \"johndoe@gmail.com\", phone: \"789-745-712\") {\n        id\n        name\n        email\n        phone\n    }\n}\n```\n\n#### Delete a client and return id\n\n```\nmutation {\n    deleteClient(id: 1) {\n        id\n    }\n}\n```\n\n#### Create a new project and return name and description\n\n```\nmutation {\n    addProject(name: \"Sample Project\", description: \"This is the project description\", status: \"new\", clientId: \"1\") {\n        name\n        description\n    }\n}\n```\n\n#### Update a project status and return name and status\n\n```\nmutation {\n    updateProject(status: \"completed\") {\n        name\n        status\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinushchathurya%2Fnodejs-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinushchathurya%2Fnodejs-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinushchathurya%2Fnodejs-graphql/lists"}