2 Replies
gives an error, but they should be identical i think
GitHub
[FEATURE]: Allow relational query builder to work with subqueries/j...
Describe what you want The following should be identical and work: await db.query.posts.findFirst({ where: and( eq(posts.type, 'blog'), inArray( posts.userId, db .select({ id: users.id }) ....