Most crud libraries for Nest try to solve too much. This is why we created @nest-frrri/crud.
We are working on the foundation of this library. If you want to take it for a test drive, please see the nest-integration app in this repository until documentation catches up.
class PostsService extends MongooseService<Post & Document>({ modelToken: 'Post' }) { }
@Crud()
@Controller({ path: 'posts' })
class PostsController implements CrudController<Post & Document> {
constructor(public service: PostsService) { }
}
See
- @nest-frrri/crud-mongoose
- @nest-frrri/crud-json-server