I’ve written before about using the cypher CREATE statement to add inferred information to a neo4j graph and sometimes we want to do that but have to deal with optional properties while creating our new relationships.
For example let’s say we have the following people in our graph with the ‘started’ and ‘left’ properties representing their tenure at a company:
CREATE (person1 { personId: 1, started: 1361708546 })
CREATE (person2 { personId: 2, started: 1361708546, left: 1371708646 })
CREATE (company { companyId: 1 })We want to create a ‘TENURE’ link from them to the…
















