0.0.7 • Published 3 years ago
nestjs-generic-crud v0.0.7
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.