© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
dubo

Filtering against a relation

I have a orgs table that have a many to many relation with a users table.

while querying with the findFirst method how can i filter against the relation so that I only return an org if the user have access to it.
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Nested relation filtering
Drizzle TeamDTDrizzle Team / help
14mo ago
RQB | using specific fields from a query against relations
Drizzle TeamDTDrizzle Team / help
3y ago
TypeScript error when specifying `relationName` in a one-to-one relation
Drizzle TeamDTDrizzle Team / help
3y ago
Filtering
Drizzle TeamDTDrizzle Team / help
3y ago