Skip to content

πŸ“˜ Example Project ​

The repository includes a small NestJS API under examples/books-api. It uses an in-memory Prisma-like delegate, so it can typecheck and build without a database.

sh
pnpm examples:check
pnpm examples:build

The example shows:

  • a model type map in examples/books-api/src/books.service.ts
  • a service extending QueryService
  • a controller using QueryDTO, PaginatedDTO, and ApiPaginatedResponse
  • an optional CASL setup in examples/books-api/src/casl-example.ts

The fake delegate intentionally implements only enough behavior for documentation and build verification. Real applications should pass generated Prisma delegates such as prisma.project or prisma.user.

Released under the MIT License.