End UNWIND statement in a Cypher Query

后端 未结 1 769
渐次进展
渐次进展 2021-01-23 00:57

If I have a cypher query that unwinds a parameter, everything after that portion of the query is called x number of times of the unwind. I\'d like to figure out a way to end the

相关标签:
1条回答
  • 2021-01-23 01:13

    After the unwind you have two rows. If you re-collapse thing before moving on you will then have a single again.

    MATCH (thing:Thing)
    UNWIND { names } AS name
    CREATE thing-[:HAS_NAME]-(n:Name {name: name})
    //done with the unwind
    WITH distinct thing
    CREATE thing[:HAS_AGE]-(a:Age {age: 20})
    
    0 讨论(0)
提交回复
热议问题