Update beforePaginate example

in beforePaginate modifications to the query object do nothing.