cancel
Showing results for 
Search instead for 
Did you mean: 

Using a new node created in a foreach

henock
Ninja
Ninja

Hi Everyone,

How can i access to a node created in a FOREACH like this :

FOREACH(ignoreMe IN CASE WHEN nodeCreatedFrom IS NOT NULL THEN [1] ELSE [] END |
        
        MERGE (newNode:Post:Grouping)-[:ATTACHED_TO]->(Folder)
            ON CREATE
                SET
                newNode.slug=nodeA.slug,
                newNode.ttuid=nodeA.ttuid,
                newNode.created_at=nodeA.created_at
)

WITH newNode

I have a undefined variable error

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.