Posted on

unwind seeds

Nasturtiums thrive in sunny, poor soils (on rich soil they send up lots of leafy growth but sometimes at the expense of flowers), so don’t worry about feeding just enjoy the explosion of colour as their spurred flowers appear.

Nasturtium Seeds

Nasturtiums are often the first plants we remember growing from seed; they are so easy! There is something reassuring about those big crinkled seeds that are guaranteed to push through the soil in record time. And no confusing those rounded leaves for weeds when they emerge above the soil.

Nasturtiums thrive in sunny, poor soils (on rich soil they send up lots of leafy growth but sometimes at the expense of flowers), so don’t worry about feeding just enjoy the explosion of colour as their spurred flowers appear.

Choose climbing nasturtiums to grow up fences or canes or let them sprawl to cascade down banks and slopes. Nasturtiums with variegated foliage add an extra hit of colour. Nasturtiums’ peppery leaves and flowers are also good to add to salads.

Unwind seeds
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

UNWIND with child UNWIND producing wrong nodes and relationships

I expect this query to produce 7 nodes with 21 relationships.

It produces 13 nodes and 6 relationships

I tried a dozen+ variations including FOREACH.

Am I wrong thinking this is possible?

2 Answers 2

This is very close, there is one thing we need to correct for this query to work as expected: the scope of your source variable. This goes out of scope in the middle of your query on the WITH:

source isn’t included in the WITH, so it goes out of scope. The source in your the last line in your MERGE isn’t bound to any prior node, so where such a pattern doesn’t exist between some node and the target, a new blank node will be created as the starting node of the relationship.

To fix this, we need to include source in your WITH so it stays in scope:

As @InverseFalcon describes, the final query looks like this

Not the answer you’re looking for? Browse other questions tagged neo4j cypher or ask your own question.

Related

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 4.0 with attribution required. rev 2019.10.11.35172