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

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

1 Like

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.

1 Like