private fun applySubQueryMatchWithAuthorizationConditions(builder: StatementBuilder.OrderableOngoingReadingAndWithWithWhere, node: Node, relatedNode: Node, relationshipDefinitions: List<AuthorizedRelationDefinition>): StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere

Matches the relationships defined in relationshipDefinitions and applies authorization conditions

Return

the new builder

Parameters

builder

the builder to apply the conditions to

node

the node to generate the conditions for

relatedNode

the node to which the relationships should be matched

relationshipDefinitions

the chain of relationships to match