The part on the buildQuery method that cleans the querystring from parameters that doesn't belong to the model has been moved to the first position of the middleware. This is to permit modification of the querystring in the middleware functions in case of user scope restrictions or other.