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.

Call YIELD function not working - Unknown procedure output

I'm trying to understand set multiple properties function

But an error always pops up

*Unknown procedure output: `nodes` (line 4, column 7 (offset: 135))*
*"YIELD nodes"*

Here's the syntax

MATCH (x:AccountHolder)
WITH x, keys(x) as keys
call apoc.create.setProperties(x,[k in keys | k + "Copy"],[k in keys | x[k]] )  
YIELD nodes
RETURN nodes; 

If needed, this is what's inside keys(x)

Any idea where's the mistake here ?

Thanks

1 ACCEPTED SOLUTION

The document shows the output as ‘node.’ You are yielding ‘nodes.’

View solution in original post

3 REPLIES 3

The document shows the output as ‘node.’ You are yielding ‘nodes.’

Thanks , it works well
i've changed to

MATCH (x:AccountHolder)
WITH x, keys(x) as keys
call apoc.create.setProperties(x,[k in keys | k + "Copy"],[k in keys | x[k]] )  
YIELD node
RETURN node; 

Does this means yield should always be 'node' ?

Yes. Yield specifies which of the procedure’s output variables you want returned. The output variables are defined in the procedure and referenced by their specific name.