#22461 #1

Merged
fabio.sinibaldi merged 27 commits from #22461 into master 2022-01-14 12:43:19 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 8118177c6d - Show all commits

View File

@ -49,9 +49,9 @@ public class Serialization {
Document queryDocument = Document.parse(queryString);
log.debug("Document is ",queryDocument.toJson());
QueryRequest req = new QueryRequest();
if (queryDocument.containsKey("ordering"))
if (queryDocument.getOrDefault("ordering",null)!=null)
req.setOrdering(Serialization.read(((Document) queryDocument.get("ordering")).toJson(), QueryRequest.OrderedRequest.class));
if (queryDocument.containsKey("paging"))
if (queryDocument.getOrDefault("paging",null)!=null)
req.setPaging(Serialization.read(((Document) queryDocument.get("paging")).toJson(), QueryRequest.PagedRequest.class));
req.setProjection(queryDocument.get("projection", Document.class));
req.setFilter(queryDocument.get("filter", Document.class));