
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
nestjs-pagination-typeorm
Advanced tools
Paginate and sort helpers for TypeORM and NestJS.
$ npm install --save nestjs-pagination-typeorm
import { InjectRepository } from "@nestjs/typeorm";
import { Repository } from "typeorm";
import { BaseRepository } from "nestjs-pagination-typeorm";
export class UserRepository extends BaseRepository<User> {
public constructor(@InjectRepository(User) repository: Repository<User>) {
super(User);
}
}
import { Injectable } from "@nestjs/common";
import { InjectRepository } from "@nestjs/typeorm";
import { UserRepository } from "./user.repository";
@Injectable()
export class UserService {
public constructor(
@InjectRepository(UserRepository)
private readonly userRepository: UserRepository,
) {}
public async findAll(filter: PaginationFilter<User>): Promise<PaginationResult<User>> {
return this.userRepository.paginate(filter);
}
}
import { Controller, Get, Query } from "@nestjs/common";
import { Paginate, PaginationDto } from "nestjs-pagination-typeorm";
import { UserService } from "./user.service";
@Controller("users")
export class UserController {
public constructor(private readonly userService: UserService) {}
@Get()
public async findAll(@Paginate() filter: PaginationFilter<User>): Promise<PaginationDto<User>> {
return this.userService.findAll(filter);
}
}
FAQs
Paginate and sort helpers for TypeORM and NestJS.
The npm package nestjs-pagination-typeorm receives a total of 0 weekly downloads. As such, nestjs-pagination-typeorm popularity was classified as not popular.
We found that nestjs-pagination-typeorm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.