Where clause dependent on with relation
So I want to add to this query where tweets.length > 0. But I don't know how to anchor on to this tweets relation
2 Replies
kinda what im thinking but this isn't the right syntax ^
You can use the
exists
filter and a subquery:
https://orm.drizzle.team/docs/operators#exists
Something like this:
Drizzle ORM - Filters
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.