I know the question above is a bit vague, but if I was more specific it wouldn't have fit in the title space. I am a bit unfamiliar with neo4j and cypher, but I think I am getting it. The problem I am having though is with two nodes I am trying to relate using a (:WRITTEN_BY) relation. The syntax I am using is this:
MATCH (d:Document), (p:Person)
WHERE d.DocID = 'P-267-b' AND p.PersonName = 'Billy Bob'
CREATE (d)-[r:SIGNED_BY]->(p)
RETURN r
This doesn't cause any errors, but it doesn't return anything either. I already created the nodes that are used here, but when I use this code, no relation is actually created as far as I can tell. What am I doing wrong here? I have seen similar problems, but the solutions that were suggested didn't work for mine.