ezeikel
03/03/2022, 3:25 PM_.count: { select: {...} }
with a filter like you can in prisma.x.count()
? this is to allow ignoring records marked as deleted in the count for example
2. Has anyone else experienced an issue with using field count in combination with a filter on a relation in findMany
e.g. get me all of the posts for a specific user but also but also give me a count of x
field? - this causes a really slow query for me averaging about 25s and removing the user filter OR the _.count
gets the time taken back down to ~1s?
(using mongo connecter btw)ezeikel
03/03/2022, 3:29 PMTyler Bell
03/04/2022, 1:38 PMezeikel
03/15/2022, 11:31 AM