chore: update readme.md

This commit is contained in:
Supan Adit Pratama 2024-10-29 02:22:40 +07:00
parent 8580ba0215
commit ef916e7d56

View File

@ -26,6 +26,33 @@ Nest Auto CRUD is a library that provides a set of modules, decorator, service,
$ npm install @aditama-labs/nest-autocrud $ npm install @aditama-labs/nest-autocrud
``` ```
## Example
### Prisma ORM
```typescript
// Your Module
@Module({
imports: [
// This is the magic
PrismaModule.forRoot({
delegate: (prisma) => prisma.user,
}),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
// Your Controller
@Controller('examples')
export class AppController extends SkeletonCRUDController {}
```
### TypeORM
_COMING SOON_
## Support ## Support
Nest AutoCRUD is an MIT-licensed open source project. Nest AutoCRUD is an MIT-licensed open source project.