Relationship Querying

Table 1. Functions

apoc.rel.id(rel)

returns id for (virtual) relationships

apoc.rel.type(rel)

returns type for (virtual) relationships

apoc.any.properties(rel, )

returns properties for virtual and real rels. Optionally restrict via keys.

apoc.any.property(rel)

returns property for virtual and real rels

Table 2. Procedures

CALL apoc.get.rels(rel|id|[ids])

quickly returns all relationships with these ids