-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unknown arg page
#4
Comments
The paginate function takes three arguments. first: only the model. (prisma.cars_model)
Also, you don't need to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
await paginate(await prisma.cars_model, {
where: {
cars_generation: {
every: {
cars_modification: {
every: {
body_type: {
contains: bodyType,
},
},
},
},
},
},
include: {
cars_generation: {
include: {
cars_modification: {
where: {
body_type: {
contains: bodyType,
},
},
},
},
},
},
take: 10,
skip: 0,
page: page,
})
I am trying to implement this code
const result = await paginate<User, Prisma.UserFindManyArgs>(
prisma.user,
{
where: {
name: {
contains: 'Alice'
}
}
orderBy: {
id: 'desc',
}
},
{ page: query.page }
})
The text was updated successfully, but these errors were encountered: