mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-24 21:16:21 +00:00
chore: update readme.md
This commit is contained in:
parent
8580ba0215
commit
ef916e7d56
27
README.md
27
README.md
@ -26,6 +26,33 @@ Nest Auto CRUD is a library that provides a set of modules, decorator, service,
|
||||
$ 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
|
||||
|
||||
Nest AutoCRUD is an MIT-licensed open source project.
|
||||
|
Loading…
Reference in New Issue
Block a user