cancel
Showing results for 
Search instead for 
Did you mean: 

Nested Cypher

sachinchandorka
Node Link

My JS object looks like this

payload: {
userId: string,
event: {
id,
name,
attributes: [
{ id, name, options: [ { id, name }, {id, name}]}
]
}
so basically, event -> attributes -> options

What Cypher can allow me to Match the user ID and create nodes for Event, Attributes and Options?
The relationships are User -OWNS->Event, Attribute-BELONGS_TO-> Event and Option-BELONGS_TO->Attribute

Thanks in advance

0 REPLIES 0