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.

Add YIELD but see error

pavloN
Node Clone

Hi! I have tried to use apoc.merge.node.eager. But see the error:
Unknown procedure output: total (line 994, column 97 (offset: 34284))
" RETURN null"
IF I try to return something, see:
Unknown procedure output: a (line 994, column 96 (offset: 34283))
" RETURN version"

Where is the mistake?

WITH apoc.convert.fromJsonList(data) as arr , 'TEST_V1' as version
UNWIND arr as v

UNWIND RANGE(0,CASE WHEN length(v.money.prima)>length(v.money.altern)THEN length(v.money.prima) ELSE length(v.money.altern) END) as i
CALL apoc.merge.node.eager(['MONEY'], {ean:coalesce(v.money.prima[i],"")}, {},{}) YIELD amount
RETURN null

1 REPLY 1

Hello, the procedure apoc.merge.node.eager() YIELDs a node variable, not amount. You can alias that if you want to: YIELD node as amount.

You can use apoc.help('merge.node.eager') to check the signature of the procedure, including yielded variables.