apoc.nodes.relationship.types
Function
apoc.nodes.relationship.types(node|nodes|id|[ids], rel-direction-pattern) - returns a list of maps where each one has two fields: node
which is the node subject of the analysis and types
which is a list of distinct relationship types