Hello.
I've been constructing queries from dynamic (user-supplied) data, where the type of comparison itself is dynamic.
E.g., I want to turn a request such as "/messages?field=id&comparison=equals&value=7" into a query of the form messages.filter(_.id === 7). For a limited set of comparisons (equals, like, in, greater-than...).
It works, but there's a bit of code involved, and it doesn't support optional columns automatically.
Anyone have a better way?
Or want to suggest clues/pointers for improvements or alternative approaches?
Cheers
Richard