nestjs-generic-crud
v0.0.7
Published
A Simple CRUD Generic Library for NestJs Framework
Downloads
16
Readme
Description
NestJs Generic CRUD A Simple CRUD Library for NestJs Framework
Using CrudService Example
# development
@Injectable()
export class UserService extends CrudService<User> {
constructor(
@InjectRepository(User)
private readonly userRepository: Repository<User>,
) {
super(userRepository);
}
}
Using CrudController Example
@Controller('users')
export class UserController extends CrudController<User> {
constructor(private readonly userService: UserService) {
super(userService);
}
}
License
NestJs Generic Crud is MIT licensed.