-
Referencing how this example is set up, I'd like to be able to call |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You can do: const users = await db.query.users.findFirst({
with: {
userToGroups: {
with: {
groups: true
}
}
}
}) |
Beta Was this translation helpful? Give feedback.
-
@udleinati I couldn't find a direct way to get what I wanted using Drizzle, so I had to map the results to shape it how I wanted. |
Beta Was this translation helpful? Give feedback.
You can do: