I'm trying to have a find many distinct with count...
# orm-help
r
I'm trying to have a find many distinct with count is that possible?
1
a
Hey there! Could you provide more details on exactly what you’re trying to achieve? That will help me come up with an accurate answer 🙂.
r
Sure!
Watch Table with Aid Bid Profile Table with id, [other profile fields] I want to get -List of Bids distinct -Count of Aids based on the distinct (grouping) -Profile fields match to Profile.id = Watch.Bid
@Austin
a
There isn’t a single Prisma query that would fulfill all of those conditions, so I think you will have to stick with
$queryRaw
for now. Feel free to open a feature request if you would like to see Prisma handle this kind of query in the future.
r
Did raw. I think i saw feature request for that but will check again.
🚀 1
🙏