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
Count Relations Error #7483
Comments
Can you enable debugging with the |
Sorry! Here's the log with
|
I also experience this problem. Where the This features killing me as one of the common attributes of a social apps is counts |
Just to correct my statement, I've encountered it again on nested table like example: |
Closing in favour of #7331 It describes the same bug. |
Bug description
I'm trying to make an API call that retrieves the count of entries for a related field. I get the following error:
How to reproduce
I'm running the following TS script:
The odd part is that running the "where" condition alone retrieves results.
Expected behavior
Returning something like:
{"decider_id":1,"name":"Cocktails","description":"Cocktails Description","slug":"cocktails", "_count": { "entries": 2}}
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: