© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
1 reply
energistic

Filter on relations based upon a WITH

I'd like to filter based upon a table that's in the
with
with
clause.
db.query.myTable.findMany({
  where: inArray(otherTable.id, [1,2]),
  with: {
    otherTable: true,
  }
})
db.query.myTable.findMany({
  where: inArray(otherTable.id, [1,2]),
  with: {
    otherTable: true,
  }
})
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filter on included relations
Drizzle TeamDTDrizzle Team / help
14mo ago
query based on deep relations
Drizzle TeamDTDrizzle Team / help
2y ago
Filter included relations
Drizzle TeamDTDrizzle Team / help
2y ago
Filter based on join data
Drizzle TeamDTDrizzle Team / help
16mo ago