many to many doc example

hello, i want to know how its possible to get the same value in the doc for many to many ?https://orm.drizzle.team/docs/rqb#include-custom-fields
4 Replies
mirinbrah
mirinbrah14mo ago
with: {
usersToGroups: {
columns: {
group: true,
},
},
},
with: {
usersToGroups: {
columns: {
group: true,
},
},
},
how is it possible ? usersToGroups doesn't have colums group
mirinbrah
mirinbrah14mo ago
mirinbrah
mirinbrah14mo ago
it tell me i can't assign '{ group: true; }' to '{ userId?: boolean | undefined; groupId?: boolean | undefined; }'.
Andrii Sherman
Andrii Sherman14mo ago
Use with Not columns