{"id":17531088,"url":"https://github.com/dzervoudakes/graphql-server","last_synced_at":"2026-04-13T06:08:27.952Z","repository":{"id":80889111,"uuid":"382743116","full_name":"dzervoudakes/graphql-server","owner":"dzervoudakes","description":"Mini GraphQL server for querying and mutating a small database of vehicles.","archived":false,"fork":false,"pushed_at":"2021-11-09T00:49:12.000Z","size":758,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T11:51:00.084Z","etag":null,"topics":["docker-compose","express","graphql","graphql-server","mongodb","mongoose","typescript"],"latest_commit_sha":null,"homepage":"","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/dzervoudakes.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":"2021-07-04T02:02:36.000Z","updated_at":"2022-05-12T02:58:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"22178ae6-9a38-430c-83ac-b99eaed22cb1","html_url":"https://github.com/dzervoudakes/graphql-server","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/dzervoudakes%2Fgraphql-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzervoudakes%2Fgraphql-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzervoudakes%2Fgraphql-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzervoudakes%2Fgraphql-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzervoudakes","download_url":"https://codeload.github.com/dzervoudakes/graphql-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126669,"owners_count":20727594,"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":["docker-compose","express","graphql","graphql-server","mongodb","mongoose","typescript"],"created_at":"2024-10-20T17:22:43.099Z","updated_at":"2026-04-13T06:08:27.922Z","avatar_url":"https://github.com/dzervoudakes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Server\n\n\u003e Mini GraphQL server for querying and mutating a small database of vehicles.\n\n[![prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)\n\n## Motivation\n\nHistorically I'm more familiar with consuming GraphQL APIs on the frontend (Apollo Client is awesome, by the way). Until recently, I hadn't yet created my own GraphQL server from scratch and so I thought it would be a fun learning experience. I've worked with Graphene in a Python/Flask app before, though I was curious to explore creating a Node/Express solution as well.\n\nShout out to [mockaroo](https://mockaroo.com/) for making generation of mock data painless. 🦘\n\n## Project Setup\n\n- Ensure that `Docker` is installed and running\n- In a terminal window at the project root, run `yarn install`\n- Run `docker compose up` to seed the database and start the Express server\n\nWhile the server is running, the GraphiQL playground can be accessed in a web browser at `http://localhost:3000/graphql`.\n\n## Example Queries\n\n### Get All Cars\n\n```gql\n{\n  getAllCars {\n    id\n    make\n    model\n    year\n    vin\n  }\n}\n```\n\n### Get Car by ID\n\n```gql\n{\n  getCarById(id: \"60e27002aed956ce6772d774\") {\n    id\n    make\n    model\n    year\n    vin\n  }\n}\n```\n\n### Get Cars by Make and Model\n\n```gql\n{\n  getCarsByMakeAndModel(make: \"Acura\", model: \"TL\") {\n    id\n    make\n    model\n    year\n    vin\n  }\n}\n```\n\n## Example Mutations\n\n### Create Car\n\n```gql\nmutation {\n  createCar(\n    make: \"Acura\",\n    model: \"TL\",\n    year: 1998,\n    vin: \"1D4PT5GK8BW557445\"\n  ) {\n    id\n    make\n    model\n    year\n    vin\n  }\n}\n```\n\n### Update Car\n\n```gql\nmutation {\n  updateCar(\n    id: \"60e27002aed956ce6772d774\",\n    make: \"Acura\",\n    model: \"TSX\",\n    year: 1998,\n    vin: \"1D4PT5GK8BW557445\"\n  ) {\n    id\n    make\n    model\n    year\n    vin\n  }\n}\n```\n\n### Delete Car\n\n```gql\nmutation {\n  deleteCar(id: \"60e27002aed956ce6772d774\") {\n    id\n    make\n    model\n    year\n    vin\n  }\n}\n```\n\n## Build Scripts\n\n### Start Server on Port 3000\n\n```sh\nyarn start\n```\n\n### Run Linting\n\n```sh\nyarn lint\n```\n\n### Run Linting with Fix\n\n```sh\nyarn lint:fix\n```\n\n### Run Unit Tests\n\n```sh\nyarn test\n```\n\n### Run Unit Tests with Coverage Report\n\n```sh\nyarn test:coverage\n```\n\n### Build for Production\n\n```sh\nyarn build\n```\n\n### Remove Output Directories\n\n```sh\nyarn clean\n```\n\n## Technical Requirements\n\n\u003e The runtime environment for this application requires `node \u003e= 14.15.0` and `yarn \u003e= 1.22.4`.\n\n## Configuration\n\n\u003e This application makes use of `ESLint` and `EditorConfig`. Each of these features requires\n\u003e an extension be installed in order to work properly with IDEs and text editors such as VSCode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzervoudakes%2Fgraphql-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzervoudakes%2Fgraphql-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzervoudakes%2Fgraphql-server/lists"}