We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drizzle-orm
0.39.2
drizzle-kit
0.30.2
No response
I'm trying to query the teams in which a specific user is teamMember but drizzle is retrieving the whole table of teams.
Am I missing something? (I tried changing the name of the teams variable in the where function)
const teams = await db.query.teams.findMany({ where: (teams, { exists, eq, and }) => exists( db .select() .from(teamMembers) .where( and( eq(teamMembers.teamId, teams.id), eq(teamMembers.userId, userId) ) ) ), with: { teamMembers: true } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.39.2
What version of
drizzle-kit
are you using?0.30.2
Other packages
No response
Describe the Bug
I'm trying to query the teams in which a specific user is teamMember but drizzle is retrieving the whole table of teams.
Am I missing something? (I tried changing the name of the teams variable in the where function)
The text was updated successfully, but these errors were encountered: