cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Need to Add new property to all the labels expect the label name not starts like 'AL_'

I am a newbie to Neo4j. Tried below code

MATCH (n)

WITH DISTINCT labels(n) AS label

UNWIND label AS names

WITH names AS candidate

WHERE candidate =~ '^(.?$|[^I].+|I[^A].)'

CALL apoc.create.setProperty(labels(candidate),'link','')

YIELD node

return node
1 REPLY 1

Only nodes and edges have properties.
One or more Labels can be applied to a node.

Are you trying to add a new property to all the nodes that have a label starting with AL_?