I have two nodes user
and files
with a relationship :contains
, the relationship has a property id
which is an array, represented as
(:user)-[:contains{id:[12345]}]->(:files)
However I want to populate the property array id
with values 1111
and 14567
sequentially using Cypher
queries, I dont find any method to push values into the array.
After inserting 1111 to property id
it will be:
(:user)-[:contains{id:[12345,1111]}]->(:files)
After inserting 14567 to property id
it will be:
(:user)-[:contains{id:[12345,1111,14567]}]->(:files)
I don't know how to populate values to an property array sequentially.