IS_SUPERVISOR_OF Party-to-Party
Description
Indicates to whom the party reports to at UTA. This is used to derive delegation logic, as well as inform company directory applications. Use this relationship only with parties with an employee role.
Label
:IS_SUPERVISOR_OF
Valid Nodes
| From | Relationship | To | Cardinality |
|---|---|---|---|
| Employee Party with property type: "person" with a :HAS_ROLE relationship to a :Role {name: "Employee"} | :IS_SUPERVISOR_OF | Employee Party with property type: "person" with :HAS_ROLE relationship to a :Role {name: "Employee" } | 0..n |
Properties
CREATE
UPDATE
DELETE
Examples
cypher
CREATE (assistant:Party {
id: randomUuid(),
name: "Hugo Davis",
type: "Person",
active: true,
createdBy: "",
createdDate: date(),
modifiedBy: "",
modifiedDate: date()
})
WITH assistant
MERGE (assistant)-[rel:HAS_ROLE]->(role:Role {
name: "Employee",
active: true,
private: false,
fromDate: date()
})
WITH assistant
MATCH (boss:Party { name: "Billy Lazarus" })
MERGE (boss)-[rel:IS_SUPERVISOR_OF {
active: true,
private: false,
fromDate: date()
}]->(assistant)
RETURN boss.name as Supervisor,
type(rel) AS Relationship,
assistant.name AS Direct