Is there a way to write a query that orders and filters based on an array of possible options?
I'm trying to do some server-side filtering and sorting for a table, and I ended up writing this for the sorting:
I have typed the
sortBy
to have the column names for the table in it so when I'm selecting the sort fields it's a union of columns. But the orderBy function errors.
Is there a way to do this both for orderBy
and where
?0 Replies