orderBy in nested findMany
The docs suggest that I can order a nested findMany (https://orm.drizzle.team/docs/rqb#order-by)
Like so:
But when I attempt to do something similar:
I get the type error :
How can I orderBy an attribute in a nested query? The projectInfo is a one-to-one relation with projects. I want to order projects by projectInfo.name? Is there a way I can do this using the
Like so:
But when I attempt to do something similar:
I get the type error :
Object literal may only specify known properties, and orderBy does not exist in typeHow can I orderBy an attribute in a nested query? The projectInfo is a one-to-one relation with projects. I want to order projects by projectInfo.name? Is there a way I can do this using the
query syntax?Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.