Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.83k stars 108 forks source link

Relation-Count (equivalent to _count) #440

Open mawoka-myblock opened 7 months ago

mawoka-myblock commented 7 months ago

I've got the following setup: An author and posts and I want to count how many posts belong to the specific author. In prisma(.js), I'd achieve that by using "Count relations".

I am probably just missing some small part to solve this issue, it's probably even just me and not your great library. Nonetheless, I don't know what to do, so I am opening this issue.

Brendonovich commented 6 months ago

Nah this isn't supported yet, I'd like to though

HairyRabbit commented 4 months ago

Any update?