Hey y'all,
I posted the following to stackoverflow yesterday:
Define a QueryBuilder by filtering then sorting
No answers so far, so I thought I'd check here so see if anyone has any suggestions. :-)
The section Update 1
shows an approach which works, however there's some code duplication. Any suggestions on making it more idiomatic are welcome.
Just responded on SO :)
This works and is very close to ideal it seems:
The only issue there is that I have to include a
queryOr
in theNothing
branch just to make the types line up:Any suggestions around settings this up so that this extra
queryOr
is not needed are welcome. :-)