Suppose we want to add a label to the towers based on the country nodes. If the label is known with a static value, an example query is as follows:
MATCH (t:Tower)--(c:Country)SET t:HasCountry
This example makes little sense, but it shows you how to indicate any relation between two nodes. Therefore, it's worth it.
If the value of the label is dynamic, APOC is here to help--we already saw this procedure that can add an array of label.
This query will add the Country code as a label to the Tower nodes:
MATCH (t:Tower)--(c:Country)CALL apoc.create.addLabels(id(t), [c.code]) YIELD nodeRETURN node