private fun createSubNodeQuery(nodeQuery: NodeQuery, builder: StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere, node: Node, parentNode: Node): StatementWithResultNodesAndNodes

Generates a query based on nodeQuery Must only be used for SubQueries and not for the root query

Return

the generated query, the result name and the name of a collection with all raw nodes

Parameters

nodeQuery

defines the query to convert

builder

the start of the query, used to generate the full query

node

associated node for conditions and relations

parentNode

the Node is related to