Conditional Filters for Query module?
For saved searches filters are defined as arrays or arrays of arrays if you use complicated “AND”, “OR” operators.
In the new query module this is replaced with a function ex: myQuery.and(cond1, cond2 etc…)
With saved search filters you can simply conditionally push a filter into an array to include it in the search, is there a way to do so with the Query module? I’ve tried using “myQuery.and.apply(null, conditionsArray)” with no success