What is the purpose of exporting relations
https://orm.drizzle.team/docs/rqb#declaring-relations
What is the purpose of exporting declared relations?
Also, I feel like it would make sense that relations would be an optional argument in pgTable, not a separately declared item
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
2 Replies
I suppose its needed to be included in the constructor of the db client, but still, why not just include as part of the
pgTable
definitionIt's the design of the API