queryParameters.add(new HttpQueryParam("descending", String.valueOf(viewQuery.isDescending())));
}
} else if (request.getPageQuery() != null) {
// Page query
CouchPageQuery pageQuery = request.getPageQuery();
path = UriUtil.buildPath(databaseName, pageQuery.getRequestedPage());
queryParameters.add(new HttpQueryParam("include_docs", String.valueOf(pageQuery.isIncludeDocs())));
queryParameters.add(new HttpQueryParam("limit", String.valueOf(pageQuery.getPageSize() + 1)));
} else {
// Unsupported
throw CouchException.badRequest("ReadRequest did not supply a document id, view query or page query");
}