© 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
•
6 replies
errorsmyown
mysql2 many-to-many
Is there an example of a mysql many
-to
-many relationship
?
I haven
't been able to find one and I
'm getting a foreign key constraint db error similar to this post
https://planetscale.com/blog/working-with-related-data-using-drizzle-and-planetscale
. I
've created a join table with foreign keys and relations in line with the example here
https://orm.drizzle.team/docs/rqb#many-to-many
.
Many thanks
!
Drizzle Queries - Drizzle ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind
.
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
Error Too many connections with Drizzle + MySQL2
DT
Drizzle Team / help
2y ago
Many to Many to Many
DT
Drizzle Team / help
12mo ago
many to many help
DT
Drizzle Team / help
17mo ago
Many to many - Planetscale
DT
Drizzle Team / help
3y ago