query where condition on foreign key relation
i have a table with a foreign key (one relation) to another table:
in a query i want to get a mapRegions + where map satisfies specific conditions, something like this:
however, typescipt is unhappy about the where and the conditions seem to not be applied
can someone please advice me on how to do it correctly?
1 Reply
it is fairly easy to make this query using raw sql or select, but in my case i need to use drizzle query