We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pagination starts from number 0 but the limit in swagger is 1, so we can never view page 0 or the first page in all the query service functions.
it should be like
const users = await prisma.user.findMany({ where: filter, select: keys.reduce((obj, k) => ({ ...obj, [k]: true }), {}), skip: (page - 1) * limit, take: limit, orderBy: sortBy ? { [sortBy]: sortType } : undefined });
here i've changed skip: (page -1) to make pagination aligned from the user entered pagination.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pagination starts from number 0 but the limit in swagger is 1, so we can never view page 0 or the first page in all the query service functions.
it should be like
here i've changed skip: (page -1) to make pagination aligned from the user entered pagination.
The text was updated successfully, but these errors were encountered: