Double 'where' clause in dynamic query overriding the original 'where' clause not combining
Hi I am using Drizzle to fetch some records:
and I want to do an additional level of filtering as well later in the function like so:
However these results now don't still have the original filters from the where clause in initial dynamic query? Is this intentional and how do I fix it?
1 Reply
This is intentional - to compose the final query you’ll need to combine all applicable conditions into an array and pass it to where once