{"id":15567719,"url":"https://github.com/piyushchauhan2011/type-graphql-practice","last_synced_at":"2025-03-06T22:31:33.548Z","repository":{"id":40764821,"uuid":"270351427","full_name":"piyushchauhan2011/type-graphql-practice","owner":"piyushchauhan2011","description":"Practice TypeGraphQL with Apollo, Express, Postgres, Redis, Typeorm and Typescript","archived":true,"fork":false,"pushed_at":"2024-09-21T16:15:30.000Z","size":610,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T03:43:12.246Z","etag":null,"topics":["apollo","redis","typegraphql","typeorm","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/piyushchauhan2011.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":"2020-06-07T15:39:13.000Z","updated_at":"2024-10-11T16:06:23.000Z","dependencies_parsed_at":"2024-03-22T03:48:03.431Z","dependency_job_id":null,"html_url":"https://github.com/piyushchauhan2011/type-graphql-practice","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/piyushchauhan2011%2Ftype-graphql-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushchauhan2011%2Ftype-graphql-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushchauhan2011%2Ftype-graphql-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushchauhan2011%2Ftype-graphql-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piyushchauhan2011","download_url":"https://codeload.github.com/piyushchauhan2011/type-graphql-practice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242298508,"owners_count":20104906,"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":["apollo","redis","typegraphql","typeorm","typescript"],"created_at":"2024-10-02T17:12:36.241Z","updated_at":"2025-03-06T22:31:33.228Z","avatar_url":"https://github.com/piyushchauhan2011.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# type-graphql-practice\nTypeGraphQL with Apollo, Express, Postgres, Redis, Typeorm and Typescript\n\n```sh\n\ncp .env.example .env # modify variables\n\ncp ormconfig.example.json ormconfig.json # modify variables\n\ndocker-compose up\n\n# connect to docker database container\ncreate database \u003cdatabase-name\u003e; # ormconfig.json\n\nyarn start\n\n```\n\nVisit `http://localhost:4000/graphql`\n\n### Caveats\n\n1. Make sure in graphql-playground settings, following is set: `\"request.credentials\": \"include\"`\n\n### Available Query and Mutations\n\n*check schema docs*\n\n```graphql\nmutation {\n  register(data:{\n    firstName:\"\",\n    ...\n  }) {\n    id\n    firstName\n    ...\n  }\n}\n```\n\n```graphql\nmutation {\n  login(email:\"\", password:\"\") {\n    id\n    firstName\n    ...\n  }\n}\n```\n\n```graphql\nquery {\n  me {\n    id\n    firstName\n    lastName\n    email\n    name\n  }\n}\n```\n\n### Reference\n\nBen Awad TypeGraphQL series [playlist](https://www.youtube.com/playlist?list=PLN3n1USn4xlma1bBu3Tloe4NyYn9Ko8Gs)\n\n\n### Testing Setup\n\n```sh\n\n# locate test-utils\n\ncp ormconfig.test.example.json ormconfig.test.json # copy and modify variables\n\nyarn test\n\nyarn test:watch # watch mode - lacks resetting database\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyushchauhan2011%2Ftype-graphql-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyushchauhan2011%2Ftype-graphql-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyushchauhan2011%2Ftype-graphql-practice/lists"}