How to Structure a Many-to-Many Relationship in Drizzle ORM to Receive Related Records as an Array?
Question:
I’m using Drizzle ORM version 0.30.10, and I’m working with a many-to-many relationship in my database schema. Currently, I receive the related records as objects, but I want to receive them in an array format instead. Below is my schema and query setup:
Schema: