Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how to express the "children" relation in parent/child? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
2 replies
hacktographer
how to express the "children" relation in parent/child?
I have a table with columns
id
id
and
parent_id
parent_id
- and I want to setup a parent
/child relationship
. Using the
relations
relations
,
one
one
, and
many
many
I
've got this but not sure if it
's correct
.
If I
'm able to express my
"parent
" relationship
, shouldn
't I also express my
"children
" relationship as well
?
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
Similar Threads
How to express "children" or "parent" relation with typescript?
DT
Drizzle Team / help
3y ago
In a relation subquery, how to reference parent column?
DT
Drizzle Team / help
2y ago
Select parent rows where child exists
DT
Drizzle Team / help
2y ago
How to express this query in Drizzle?
DT
Drizzle Team / help
3y ago