cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a default database property for data under the same label

Dosmi
Node

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

glilienfield
Ninja
Ninja

Look into apoc triggers