π 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:buildThe example shows:
- a model type map in
examples/books-api/src/books.service.ts - a service extending
QueryService - a controller using
QueryDTO,PaginatedDTO, andApiPaginatedResponse - 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.