function type(relationship)

Returns a string representation of the relationship type.

Arguments:
relationship: A relationship.

Example Query:
    MATCH (n)-[r]->()
    WHERE n.name='Alice'
    RETURN type(r)