{"id":19064999,"url":"https://github.com/joist-orm/joist-graphql-sample","last_synced_at":"2026-06-20T19:31:11.785Z","repository":{"id":152599354,"uuid":"620061658","full_name":"joist-orm/joist-graphql-sample","owner":"joist-orm","description":"joist sample with graphql scaffolding","archived":false,"fork":false,"pushed_at":"2026-05-20T22:11:35.000Z","size":3131,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-16T08:33:23.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/joist-orm.png","metadata":{"files":{"readme":"README.markdown","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-28T00:33:29.000Z","updated_at":"2026-05-20T22:10:58.000Z","dependencies_parsed_at":"2025-12-26T00:16:18.863Z","dependency_job_id":null,"html_url":"https://github.com/joist-orm/joist-graphql-sample","commit_stats":null,"previous_names":["joist-orm/joist-graphql-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joist-orm/joist-graphql-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joist-orm%2Fjoist-graphql-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joist-orm%2Fjoist-graphql-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joist-orm%2Fjoist-graphql-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joist-orm%2Fjoist-graphql-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joist-orm","download_url":"https://codeload.github.com/joist-orm/joist-graphql-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joist-orm%2Fjoist-graphql-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34583589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":[],"created_at":"2024-11-09T00:48:10.083Z","updated_at":"2026-06-20T19:31:11.765Z","avatar_url":"https://github.com/joist-orm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Joist Sample App\n\nThis is a bare minimum sample app using Joist as an ORM.\n\nThere are two domain objects, `Author` and `Book`, and a single test, `Author.test.ts`.\n\nThere are no examples of business logic or Joist's various features; for those see the docs.\n\n## Setup\n\n- `yarn i`\n- `docker-compose up -d db`\n- `yarn pg-migrate`\n- `yarn joist-codegen` (if you've made migration/schema changes)\n- `yarn test`\n\n## Example Workflow\n\nA typical workflow for adding a new entity looks like:\n\n- Run `npm run pg-new-migration \"add book review\"`\n- Edit the `migrations/...add-book-review.ts` file and add\n  ```typescript\n  createEntityTable(pgm, \"book_reviews\", {\n    book_id: foreignKey(\"books\"),\n    rating: { type: \"integer\", notNull: true },\n  });\n  ```\n- Run `yarn pg-migrate`\n  - If you change your migration, and want to re-apply it from scratch, run `docker-compose exec db ./reset.sh`\n- Run `yarn joist-codegen`\n- Copy/paste the `Author.test.ts` and write a test for `Publisher`\n\n## Steps Taken to Setup This Repo\n\nTODO: Automate this with more, probably with mrm.\n\n- Install basic prettier/TypeScript/jest.\n\n  ```shell\n  npm install -g mrm\n  npm install -g \\\n    @homebound/mrm-tasks-prettier \\\n    @homebound/mrm-tasks-gitignore \\\n    @homebound/mrm-tasks-typescript\n  mrm @homebound/mrm-tasks-prettier \\\n    @homebound/mrm-tasks-gitignore \\\n    @homebound/mrm-tasks-typescript\n  ```\n\n- Copy/paste `migrations/...author.ts`\n- Add `joist-orm`, `joist-migration-utils`, `joist-codegen` to `package.json`\n- Copy/paste `.env`, changed port\n- Add `tsx`, `env-cmd` to `package.json`\n  - Should come from `mrm`?\n- Add `pg-migrate` script, run it\n- Add `joist-codegen` script, run it\n- Add `Author.test.ts`\n- Add `dotenv` to `package.json`\n- Add `pg-new-migration` to `package.json`\n- Add `.gitattributes` to suppress diffs on generated files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoist-orm%2Fjoist-graphql-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoist-orm%2Fjoist-graphql-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoist-orm%2Fjoist-graphql-sample/lists"}