Skip to content

Conversation

@lamuertepeluda
Copy link
Contributor

Support omit and distinct. Solves #38

I fixed this issue by improving the typing of PrismaQuery.

The fix is for src/page-number.ts as cursor does not use count().

The usage of spread operator without distinguishing arguments for findMany() and arguments for count() is causing some queries which add omit or distinct or other arguments to break.

Sadly distinct with count will report a wrong number of items because of prisma/prisma#4228

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

Successfully merging this pull request may close these issues.

1 participant