Hi thete,
Do you also have the resulting json that is sent to the server? That way we could reproduce it more easily.
/peter
Send from mobile.
Hi.
I'm trying to insert unique nodes / relationships in a batch operation.I'm not sure if there's anything wrong in my code or Neo4j doesn't support the feature yet.The code to create unique node id 0, 1 worked as expected.The problem is in creating unique relationship.Thanks!Code:(let [ops [{:method "POST":to "/index/node/vertices?unique":body {:key "name" :value "Tobias" :properties {:name "Tobias" :n 1}} ;; OK:id 0}{:method "POST":to "/index/node/vertices?unique":body {:key "name" :value "Anders" :properties {:name "Anders" :n 2}} ;; OK:id 1}{:method "POST":to "/index/node/vertices?unique":body {:key "name" :value "Anders" :properties {:name "Anders" :n 2}} ;; OK:id 2}{:method "POST":to "/index/relationship/edges/?unique" ;; 500 error:body {:key "name":value "tobias-anders":start "{0}":end "{1}":type "FRIENDS":data {:since 1991}}:id 3}res (doall (batch/perform ops))]Result::body "{\n \"message\" : \"{\\n \\\"message\\\" : \\\"For input string: \\\\\\\"{0}\\\\\\\"\\\",\\n \\\"exception\\\" : \\\"BadInputException\\\",\\n \\\"stacktrace\\\" : [ \\\"org.neo4j.server.rest.web.RestfulGraphDatabase.extractNodeId(RestfulGraphDatabase.java:162)\\\", \\\"org.neo4j.server.rest.web.RestfulGraphDatabase.extractNodeIdOrNull(RestfulGraphDatabase.java:151)\\\"
cd servermvn clean package -P initial-build