Nested relation filtering
We have a
How can I accomplish in drizzle wherein I query for a section, including users (and its fields) under it, but only
user table (id, name, role…) and section table (id, name…), bridged by a user_section table (userId, sectionId). Hence, a many-to-many relationship.How can I accomplish in drizzle wherein I query for a section, including users (and its fields) under it, but only
users with the role “Student”? Right now, I can only filter through userId and sectionId in the relational query API (see screenshot).