private fun createPartialRootReturnStatement(builder: StatementBuilder.OngoingReading, resultNodesCollected: SymbolicName, otherResults: List<SymbolicName>): StatementWithSymbolicName

Creates the return statement and builds the query. This does NOT include total count and is meant for partial results

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