Get type for select query?
Hey guys, is there a way to infer the "select" type for a given table? for example:
I have a
UsersService
class with getUsers
method. I want callers to be able to select specific columns.
Is is possible to achieve this type safety and autocomplete without directly using the drizzle client?5 Replies
@Dan Kochetov
Is this question maybe related to this?
https://github.com/drizzle-team/drizzle-orm/issues/504
If so where can I find that API layer?
@Dan Kochetov any news about this one?
This works, but I noticed that we lose $dynamic query for some reason.