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.

Adding a default database property for data under the same label

Hello all,

I know inserting new data manually is not the prime usage of Neo4j, however, I find myself using the Graphlytic tool for inserting new nodes, and it would be fantastic if there was a way to set up that a property of the data under the same label would be some default, ...

...could work similar way as:

SET (n:labelname) default n.name="untitled"

Then, instead of creating data like:

CREATE (n:labelname{name: 'untitled'})

 

you could be able to just say:

CREATE (n:labelname)

and the new entry would have the name:"untitled" by default.

 

Please let me know if there is already a way to do this. As far as I have looked, not. 

 

Thanks

1 REPLY 1

Look into apoc triggers