Is it possible to pass sub query to `from`?
I have a
db.select().from()
and I need to pass a nested query into that from.
2 Replies
Yes, check here: https://orm.drizzle.team/docs/select#select-from-subquery
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Thank youuuuuu
Not sure what's going on here, this is my subquery but the .from won't accept it
The type is not assignable
Ignore this