private fun generateResultNodeExpression(nodeExpression: Expression, nodeQuery: QueryBase<*>, nodeAlias: SymbolicName, orderContext: OrderContext?): MapExpression

Generates the expression for the result node, including the node itself and extension fields

Return

the generated expression

Parameters

nodeExpression

the expression for the node itself

nodeQuery

the currently converted query

nodeAlias

name of the variable containing the node

orderContext

order to sort by with associated variables