Recursive table

how to make recursive such as category inside category?
2 Replies
Yomyam
YomyamOP11mo ago
bump
Mykhailo
Mykhailo11mo ago
Hello, @NightKunGz ヅ! You can find some useful information for this topic in docs: https://orm.drizzle.team/docs/joins#aliases--selfjoins Main idea is that you have parentId which could be null and it referenced to primary key in this table
Drizzle ORM - Joins
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.

Did you find this page helpful?