const res = await db.query.users.findMany({
where: eq(users.id, 1),
with: {
posts: true
}
});const res = await db.query.users.findMany({
where: and(
eq(users.id, 1),
like(posts.content, "%bananas%"),
),
with: {
posts: true
}
});