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.

Nested Cypher

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