Hi,
I am having problems migrating from the CddQueryService to the QueryService.
What I used:
ResultSet<DataServicesDocument> resultSet = cddQueryService.query(cdmName, filterSpec, Collections.emptyList(),
PageSpec.MAX_RESULTS,
Collections.emptyList());
What I try to use now:
QueryRoot queryRoot = QueryRoot.builder().projectionName("cdd").targetDocumentModel(cdmName).paging(Paging.builder().pageNumber(0).pageSize(100).build()).build();
QueryPage<Object> resultSet = cddQueryService.query(queryRoot,null);
However, the content in the result page is a DocumentSpec and document in there is not a document but just a String.
The projection document-graph also doesnt give me a cdd document, but I am confused about “A document graph contains all documents and links which are needed to construct a CDD”, is that what I need instead and do I need to programm that constructing myself or is there already a method for that?
I need the document to compute the cdm document (IDocumentRtService.compute.
Thanks!