Passes query parameters in index endpoint to the mongoose find method call