confused with relations
Hey guys, I have started working with drizzle relations and finding it a bit confusing compared to prisma relations. My question is, is there any working example available out there with drizzle relations covering all the 1-1, 1-n, n-n, n-1 relations??
I'm using postgresjs for local dev and vercel postgres for prod'
Thank you
3 Replies
one more doubt, will
npx drizzle-kit introspect
also work with relations?Some example (not covering everything).
https://drizzle.run/ps9ydkhwlxzg9h7xehkgayp1
https://drizzle.run/kj8f8jjoe8wfjeow14of8foi
https://drizzle.run/ark1boqh4pq1904m4alcyyam
https://drizzle.run/csomxfekljmcadp4ofihhcb1
I am planning to add concrete Drizzle Example in Drizzle Run
Drizzle Run
Self one-to-many relations - Drizzle Run
Drizzle Run
Many to many with query API - Drizzle Run
Drizzle Run
Query with relation - Drizzle Run
Not sure. I think I have read something about that but can't remember what.