magic von bunny
DTDrizzle Team
•Created by magic von bunny on 3/14/2025 in #help
Issue resolving field names in multi-table query where clause
When trying to use
query
along with with
clauses for relations. When building a where
clause that references one of the included table fields - I am getting an error indicating that drizzle thinks the field belongs to the first table.
Gives an error:
It seems that this is a known bug from what I found on issues: https://github.com/drizzle-team/drizzle-orm/issues/3573
Is there any fix/workaround for this?
Do I need to switch this query to insead use select()
instead of query
?1 replies