Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-25-2022 03:34 PM
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
Solved! Go to Solution.
02-25-2022 07:15 PM
02-25-2022 07:15 PM
The document shows the output as ‘node.’ You are yielding ‘nodes.’
02-25-2022 07:18 PM
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' ?
02-26-2022 04:12 AM
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.
All the sessions of the conference are now available online