-
Referencing how this example is set up, I'd like to be able to call |
Beta Was this translation helpful? Give feedback.
Answered by
Angelelz
Mar 6, 2024
Replies: 2 comments 4 replies
-
You can do: const users = await db.query.users.findFirst({
with: {
userToGroups: {
with: {
groups: true
}
}
}
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
andyrue
-
@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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do: