© 2026 Hedgehog Software, LLC
query()
await db.query.posts.findMany({ where: (posts, { eq }) => (eq(posts.id, 1)), with: { comments: { where: (comments, { lt }) => lt(comments.createdAt, new Date()), }, }, });
where
with
drizzle-orm
0.29