has_relationship()
Usage
has_relationship(node1, node2, relType)
has_relationship(node1, node2)
Description
Returns a boolean value indicating whether at least one relationship exists between the given nodes, with an optional qualifying relationship type. See also incoming()
and outgoing()
.
Example
${has_relationship(me, page, 'OWNS')}
results in
false