Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-13-2021 05:13 PM
Hello,
I'm using the Java neo4j driver, and I'm trying to call the apoc.refactor.mergeNodes function, but I keep running into this error:
org.neo4j.driver.internal.shaded.io.netty.handler.codec.EncoderException: Failed to write outbound message: RUN "CALL apoc.refactor.mergeNodes($nodes, {properties: 'discard', mergeRels:true}) YIELD node RETURN count(*)
The param I'm passing in is a List<Value>: {nodes=[[node<#########>, node<#########>, node<#########>], [...], [...], ...]}
Any tips on what I'm doing wrong?
Currently trying to debug:
@Override
public Integer execute(Transaction tx) {
List results = tx.run(cypher, parameters("nodes", params)).list();
System.out.println("Results " + results.get(0));
return 1;
}
Currently running this alongside liquibase, so it's kinda hard to debug compiled jar file
08-19-2021 02:27 PM
You cannot send nodes as parameters, you need to send their id's or business keys and look them up again.
All the sessions of the conference are now available online