{"repo":"kepelrs/nestjs-prisma-crud","free":true,"listed":false,"github":"https://github.com/kepelrs/nestjs-prisma-crud","clone":"git clone https://github.com/kepelrs/nestjs-prisma-crud.git","description":"CRUD package for NestJS and Prisma ORM","language":"TypeScript","stars":166,"topics":["nestjs","nest","prisma2","prisma","crud","scaffold","scaffolding","typescript","rest-api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"nestjs-prisma-crud CRUD utility for simple REST use cases. Builds on top of NestJS and Prisma. Inspired by @nestjsx/crud. Installation npm i nestjs-prisma-crud --save npm i nestjs-prisma-crud-schematics --save-dev Why When building REST API's there is common functionality that we would prefer not to implement again and again. This package offers minimal and opinionated out of the box solutions for some of those (see features below). ✔ Features An overview of the provided functionality: 1. Advanced client side joining , sorting , filtering and pagination via query parameters - Any valid prisma .where can be sent by the frontend. - Server side validation to safeguard against arbitrarily deep .join or .where clauses by clients. - Support for including only specific properties in the response. 2. Access control - @AccessPolicy decorator with default utilities that support functionalities similar to RBAC/ABAC. - Custom policy support. 3. Atomic operations - Supports POST/PATCH with nested objects. - Transaction support when extending controller functionality. 4. Schematics - crud-resource : a modified NestJS resource schematic that scaffolds the entire CRUD module for you. One-line scaffolding with: nest g -c nestjs-prisma-crud-schematics crud-resource 5. Plug and play - Can be used alongside your other non nestjs-prisma-crud controllers. - You can still use PrismaCrudService and @AccessPolicy in your custom controllers if you want to retain some of nestjs-prisma-crud 's functiona","default_branch":null,"files":null,"tree":[],"storefront":"/r/kepelrs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kepelrs/nestjs-prisma-crud/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}