I'm fairly new to neo4j and to cypher in general. Besides that, I'm not really good at using cypher. However, I want to create relationships between the nodes, that already exist in my database and share one property. So to give a specific example: I'd like to create a relationship between a letter and its sender. The common ground is the label of the person and the property sender of the letter. I just don't know how to narrow down my query, although I get why this ends up being a cartesian product.
Match (p:Person), (l:letter)
WHERE p.label = l.sender
Could somebody please help me out here?
Probably it would best to use MERGE since the nodes themselves already exist in my database. Likely it's not just that easy to access the properties. Do I need to mention them first?
Thank you for your support and patience with this confused brain of mine!