generated from deptyped/prisma-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagniate not working in prisma 5 #13
Comments
Hi, before calling return await this.prismaService.usermodels.paginate().withPages({
limit: 10,
page: 2,
includePageCount: true,
}); |
xPrisma.ts is below that code import { PrismaClient } from '@prisma/client';
import { ConfigService } from '@config/config.service';
import pagination from 'prisma-extension-pagination';
const xPrisma = new PrismaClient({
datasources: {
db: {
url: new ConfigService().DB_ENDPOINT,
},
},
});
xPrisma.$extends(pagination);
export { xPrisma }; import { xPrisma } from '@/prisma/xPrisma';
return await xPrisma.usermodels.paginate().withPages({
limit: 10,
page: 2,
includePageCount: true,
}); and that code occure error
Envoriment is sameㅠㅠㅠ |
OMG It working u save my life thank u ~~ 💯 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Node Version: v18.16.1
Typescript Version: 5.1.6
Nest Version: 10.1.0
Prisma Client Version: 5.0.0
tsconfig.json
Error message:
Reproduce Code
The text was updated successfully, but these errors were encountered: