neo4jphp

Create is working but MERGE in neo4j post params has error

烈酒焚心 提交于 2019-11-29 16:12:32
I have the code below .And a I am getting this error.How can I fix it ? BTW CREATE for the same is working: <?php $data2='{ "names" : [{ "name" : "Keanu Reeves1", "role" : "Neo1" }, { "name" : "Keanu Reeves2", "role" : "Neo2" }, { "name" : "Keanu Reeves3", "role" : "Neo3" }] }'; $data ='MERGE (u:Person {names}) RETURN u'; $data2=json_decode($data2); $data = array("query" =>$data,"params"=>$data2 ); $data_string = json_encode($data); print_r($data_string); //print_r($data2); $ch = curl_init('http://192.....:7474/db/data/cypher'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch,

Create is working but MERGE in neo4j post params has error

吃可爱长大的小学妹 提交于 2019-11-28 09:59:49
问题 I have the code below .And a I am getting this error.How can I fix it ? BTW CREATE for the same is working: <?php $data2='{ "names" : [{ "name" : "Keanu Reeves1", "role" : "Neo1" }, { "name" : "Keanu Reeves2", "role" : "Neo2" }, { "name" : "Keanu Reeves3", "role" : "Neo3" }] }'; $data ='MERGE (u:Person {names}) RETURN u'; $data2=json_decode($data2); $data = array("query" =>$data,"params"=>$data2 ); $data_string = json_encode($data); print_r($data_string); //print_r($data2); $ch = curl_init(