© 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
mr_pablo
With condition
I am using db
.query to fetch some data with a lot of related data
.
One of the
with
with
statements is only applicable if a column value from another joined table is a certain value
.
Does
with
with
support a
where
where
that uses another joined tables data
? If so
, what does the syntax look like
?
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
Define a index with condition
DT
Drizzle Team / help
3y ago
PgEnum not working with condition Ilike ?
DT
Drizzle Team / help
2y ago
relation select query with where condition
DT
Drizzle Team / help
3y ago
Db race condition
DT
Drizzle Team / help
3y ago