Skip to content

ALLOWED_JOB_ROLE Party Category

Description

Connects a :Role to a :JobRole.

Label

ALLOWED_JOB_ROLE

Valid nodes

FromRelationshipToCardinality
Role
A node with the :Role label
:ALLOWED_JOB_ROLEJobRole
A node with the :JobRole label and a specific name property
0..n

Properties

ALLOWED_JOB_ROLE uses the standard relationship properties, and makes use of the subType field. The subType field is intended to match the subType field of the corresponding :Role node.

For example, for the :Role { name: 'Buyer' }, a valid subType on the ALLOWED_JOB_ROLE relationship would be Touring. When looking up allowed job roles for buyers, the ALLOWED_JOB_ROLE relationship attribute subType would be used to filter the results by filtering on "Touring".

CREATE

"Allowed job roles" are not required on role nodes. Therefore, a role node may have zero or more distinct :ALLOWED_JOB_ROLE links to :JobRole nodes (duplicates between the same Role and JobRole are not allowed).

UPDATE

DELETE

Examples

cypher
MERGE (r:Role {name: Buyer})
WITH r
MERGE (jr1:JobRole {name: "Ticketing"})
MERGE (jr2:JobRole {name: "BoxOffice"})
MERGE (jr3:JobRole {name: "Promoter"})

MERGE (r)-[:ALLOWED_JOB_ROLE {subType: "Touring"}]->(jr1)
MERGE (r)-[:ALLOWED_JOB_ROLE {subType: "Touring"}]->(jr2)
MERGE (r)-[:ALLOWED_JOB_ROLE {subType: "Touring"}]->(jr3)

Confidential. For internal use only.