Commit 5f80ff8
feat: add GQloom example: GraphQL + Zod + Prisma (#8331)
* feat: initialize GraphQL ORM with Prisma and GQloom
* refactor: rename allUsers query to users in GraphQL schema and resolver
* fix: update email validation in signupUser mutation to use z.email()
* feat: migrate database from SQLite to PostgreSQL and enhance query capabilities with new filters and enums
* feat: add README for GraphQL server example with TypeScript, Prisma, and GQLoom
* chore: remove generated Prisma files for User and Post models along with related metadata and type definitions
* chore: add .gitignore file to exclude node_modules, dist, environment files, and generated source code
* feat: add test setup script for GraphQL GQloom integration with Prisma
* docs: update GQLoom description in README to clarify its Code-First approach and TypeScript integration
* feat: update TypeScript configuration and enhance resolvers with selected fields for Post and User models
* fix: change post and user ID types from Float to Int in GraphQL schema and resolvers
* Update .github/tests/orm/graphql-gqloom/run.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update orm/graphql-gqloom/src/resolvers/post.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update orm/graphql-gqloom/src/server.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update orm/graphql-gqloom/src/resolvers/user.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update orm/graphql-gqloom/src/db.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update .github/tests/orm/graphql-gqloom/run.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update orm/graphql-gqloom/src/resolvers/post.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Refactor seed.ts to use centralized Prisma client instance
* chore(graphql-gqloom): update to Prisma 7
- Bump @prisma/client, @prisma/adapter-pg, prisma to 7.5.0
- Remove @prisma/extension-accelerate (not needed for local PG)
- Add pg as explicit dependency
- Drop engineType from schema.prisma (default in Prisma 7)
- Fix db.ts to use plain PrismaPg adapter without withAccelerate
- Remove dead imports in seed.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(graphql-gqloom): address CodeRabbit review comments
- Make server port configurable via PORT env var
- Default posts to empty array in signupUser input
- Strip __typename via PostCreateInput transform (removes need for manual map)
- Add case-insensitive mode to feed search filters
- Parallelize user creation in seed with Promise.all
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Aman Varshney <aman@Amans-MacBook-Pro.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 392335b commit 5f80ff8
14 files changed
Lines changed: 1352 additions & 0 deletions
File tree
- orm/graphql-gqloom
- prisma
- src
- resolvers
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments