{"id":13522452,"url":"https://github.com/tdolsen/edgedb-nestjs-example","last_synced_at":"2026-02-14T05:57:07.792Z","repository":{"id":62052845,"uuid":"487665100","full_name":"tdolsen/edgedb-nestjs-example","owner":"tdolsen","description":"Simple example of configuring a NestJS application to use EdgeDB (and a bespoke GraphQL API).","archived":false,"fork":false,"pushed_at":"2022-10-25T08:29:19.000Z","size":98,"stargazers_count":15,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T09:50:03.066Z","etag":null,"topics":["docker","edgedb","edgeql","graphql","nestjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tdolsen.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}},"created_at":"2022-05-01T23:29:06.000Z","updated_at":"2025-03-10T10:20:26.000Z","dependencies_parsed_at":"2022-10-25T19:00:33.545Z","dependency_job_id":null,"html_url":"https://github.com/tdolsen/edgedb-nestjs-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdolsen%2Fedgedb-nestjs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdolsen%2Fedgedb-nestjs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdolsen%2Fedgedb-nestjs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdolsen%2Fedgedb-nestjs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdolsen","download_url":"https://codeload.github.com/tdolsen/edgedb-nestjs-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552513,"owners_count":20795826,"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","edgedb","edgeql","graphql","nestjs","typescript"],"created_at":"2024-08-01T06:00:47.463Z","updated_at":"2026-02-14T05:57:07.781Z","avatar_url":"https://github.com/tdolsen.png","language":"TypeScript","funding_links":[],"categories":["Applications"],"sub_categories":[],"readme":"# NestJS + EdgeDB\n\n## Setup\n\n1. `edgedb project init`\n2. `yarn install`\n3. `yarn generate:edgeql`\n4. `yarn dev`\n5. Server should now be running!\n\n## GraphQL\n\nThis example uses the `@nestjs/graphql` module, setting up it's own GraphQL endpoint at [localhost:3000/graphql](https://localhost:3000/graphql).\n\n## Generated code path mapping\n\n- `tsconfig.compilerOptions.paths` ensures `generated/edgeql` is available in sources with imports from `~/edgeql`.\n- The generated code is placed outside of `src`.\n  - It proved more convenient when having to commit the generated code into the repo (of the project making the basis for this example).\n    - Specifically for the purpose of building Docker images in CI.\n    - And without having a running EdgeDB instance to introspect.\n- Child paths immediately inside `src/*` are also available from `~/*`, so beware of conflicts; eg.:\n  - `~/edgedb` refers to `src/edgedb`\n  - `~/edgeql` refers to `generated/edgeql`\n\n## Docker\n\nAlso included in this repo are two `Dockerfile`s (API + EdgeDB), as well as a `docker-compose.yml` configuration for building and instantiating them.\n\n- Simply running `docker-compose up -d` should do the trick.\n- Then `docker-compose build` to rebuild upon any changes you make to the code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdolsen%2Fedgedb-nestjs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdolsen%2Fedgedb-nestjs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdolsen%2Fedgedb-nestjs-example/lists"}