# Nested Cypher

**URL:** <https://community.neo4j.com/t/nested-cypher/33357>\
**Category:** Cypher\
**Created:** [February 7, 2021, 11:24am UTC](https://community.neo4j.com/t/nested-cypher/33357 "2021-02-07T11:24:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachinchandorkar11](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/sachinchandorkar11/32/6261_2.png) [@sachinchandorkar11](https://community.neo4j.com/u/sachinchandorkar11)\
**Post date:** [February 7, 2021, 11:24am UTC](https://community.neo4j.com/t/nested-cypher/33357/1 "2021-02-07T11:24:37Z")

</div>

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 🙂
