Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-22-2018 07:44 PM
Commencing with Neo4j 3.0.x and the introduction of stored procedures as well as APOC
one can utilize the stored procedure apoc.create.addLabels
to move a property to a label with Cypher as follows
<!-- // create a node with property studio -->
create (n:Movies {name: 'A Few Good Men', studio: 'Warner Brothers'})
<!-- // move the 'studio' property to a label and remove it as a property -->
MATCH (n:Movies)
call apoc.create.addLabels([ id(n) ], [ n.studio ]) yield node
with node
remove node.studio
return node
All the sessions of the conference are now available online