Skip to content
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

Take is omitted and returns all docs #40

Open
DonsWayo opened this issue Dec 6, 2023 · 1 comment
Open

Take is omitted and returns all docs #40

DonsWayo opened this issue Dec 6, 2023 · 1 comment

Comments

@DonsWayo
Copy link

DonsWayo commented Dec 6, 2023

const monitors = await db.monitors.findMany({ take: 10 });
console.log("monitors: ", monitors.length);
monitors:  606

Im trying to achive the iteration take/skip and I see always return all de documents, maybe I missing something?

@skoshx
Copy link
Owner

skoshx commented Dec 7, 2023

Hey, thanks for opening this issue! Actually the pagination options take and skip haven't been implemented yet, but I just added them to match Prisma's API. Sorry about the confuson it has caused!

Would you be willing to submit a PR for this? :) Have been super busy lately so haven't had so much time unfortunately :/

@skoshx skoshx mentioned this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants