private fun createEntriesSubQueriesRecursive(builder: StatementBuilder.OngoingReading, nodeQuery: QueryBase<*>, allNodes: SymbolicName, unwindCount: Int): Pair<StatementBuilder.OngoingReading, List<SymbolicName>>

Creates SubQueries for each SubQuery in the provided nodeQuery Generates recursively depth first.

Return

the new statement builder, and a list of all names to return (names of the SubQuery results)

Parameters

builder

the builder to add the SubQuery calls to

nodeQuery

contains the SubQuery entries

allNodes

name of the collection containing all nodes, should be a nested collection of depth unwindCount

unwindCount

nesting depth of allNodes collection