private fun createRootReturnStatement(builder: StatementBuilder.OngoingReading, resultNodesCollected: SymbolicName, otherResults: List<SymbolicName>, totalCount: SymbolicName?): StatementWithSymbolicName
Creates the return statement and builds the query. If totalCount is not fetched, null is set as value for totalCount Must only be used for the root query
Return
the generated statement, the result name and the name of a collection with all raw nodes
Parameters
builder
ongoing statement builder
resultNodesCollected
name for the variable containing a collection of all result nodes
otherResults
names of other results which should be returned, e.g. the names of the SubQuery results
totalCount
name for the variable under which totalCount should be saved