© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
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 Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Nested relation filtering
DT
Drizzle Team / help
14mo ago
RQB | using specific fields from a query against relations
DT
Drizzle Team / help
3y ago
TypeScript error when specifying `relationName` in a one-to-one relation
DT
Drizzle Team / help
3y ago
Filtering
DT
Drizzle Team / help
3y ago