'NestJS typeorm pagination type in @nestjs/swagger plugin

i have an endpoint which returns a list with pagination. i'm trying to use nestjs/swagger plugin to automatically collect endpoints and DTOs and etc. plugin works fine with all endpoints except the one which the return type is typeorm pagination.

  findAll(
    @Query('page', new DefaultValuePipe(1), ParseIntPipe) page : number,
    @Query('limit', new DefaultValuePipe(10), ParseIntPipe) limit : number,
    @Query('domain') domain: string,
  ): Promise<Pagination<webContent>> {
    return this.webService.findAll({ page, limit }, domain);
  }

webcontent is :

export default class webContent {
  @PrimaryColumn()
  domain: string;

  @ManyToMany(() => WebCategory)
  @JoinTable()
  categories: WebCategory[];
}

any solutions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source