© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
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 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

Error Too many connections with Drizzle + MySQL2
Drizzle TeamDTDrizzle Team / help
2y ago
Many to Many to Many
Drizzle TeamDTDrizzle Team / help
12mo ago
many to many help
Drizzle TeamDTDrizzle Team / help
17mo ago
Many to many - Planetscale
Drizzle TeamDTDrizzle Team / help
3y ago