// in any repository class
findAll(id: string) {
return this.prismaService.pagination. // no type identification from here on
// expected: return this.prismaService.pagination.any_model.paginate().withPages();
}
But since pagination variable is not typed, when you try to use paginator, autocomplete is not generated anywhere, and also, any schema breakchanges are not detected by prisma.
Is It possible to add pagination types to this library?
Hi,
When using pagination with NestJs it's necessary to code like this:
But since pagination variable is not typed, when you try to use paginator, autocomplete is not generated anywhere, and also, any schema breakchanges are not detected by prisma.
Is It possible to add pagination types to this library?