Typescript not showing where field in query. Query working but ts throwing error
Hi, I have a query like below
// relations.ts
I'm using drizzle-orm: ^0.29.1
2 Replies
the
where
is not available in a one
relation. If you are filtering a one relation, you might as well not include it.
Just remember that this filter is being applied to the related field type
, not to the weights
i have same question, if i have relation table one to many, which is i wan to findFirst [tblA] where related [tblB].otherField = "123". assume [tblA].field relations to [tblB].field