August 31, 2015 • Tips Neo4j • Bartosz Konieczny
Labels, as other node properties, can be defined with SET clause. This query should add label "Animal" to label only with "Cat":
CREATE (c:Cat); MATCH (c:Cat) SET c :Animal RETURN LABELS(c) // should return "Cat, Animal"
privacy policy © 2014 - 2025 waitingforcode.com. All rights reserved | Design: Jakub Kędziora