Everything at once
Filtering, sorting and pagination; all at the same time.
findAll(@Query() queryProductsDto: QueryProductsDto) {
return this.productsService.findAll(queryProductsDto);
}const { page, name, price, categoryId, sort, order } = queryProductsDto;where: {
name: name && ILike(`%${name}%`),
},price,categories: { id: categoryId },Last updated