cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Using a new node created in a foreach

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