How to use MERGE to create or reuse a part of pattern?
问题 I have node PRODUCT with multiple REVIEW node. I would create node PRODUCE if the product is not exist, then bind with REVIEW. For the example, I want a PRODUCE node {name:'X phone'} with 3 REVIEW {content:'best phone ever'}, {content:'worst phone ever'}, {content:'nope'}. I tried First, use one cypher MERGE for each REVIEW. MERGE(product:PRODUCT{name:'X phone'})-[:RATE]-(review:REVIEW{content:'best phone ever'}) MERGE(product:PRODUCT{name:'X phone'})-[:RATE]-(review:REVIEW{content:'worst