While this would be a great fix for the scenario I described above I'm more
interested on addressing common query concerns w/o having to repeat them
over and over again.
In order to walk away of the authorization context I put as an example
above, let's use another examples:
What if a set of pre-conditions are part of certain group of queries. For
instance, for certain department they only need to deal with documents with
the following characteristics:
1) Users are older than 18 yo.
4) Living on certain area: state, city, etc...
What if you have several queries that use those pre-conditions; I don't
want to repeat over and over the where clauses in my queries.