我有一个 php 数组$id=[12344,546674,6789];
我想将此数组设置为id
关系属性的值:knows
,表示为
(:user)-[:knows{id:[]}]->(:data)
我为neo4j 使用everyman php 插件
我试过下面的查询,但它给出了一个错误Array cannot be converted to string
$id=[12344,546674,6789];
$client = new Everyman\Neo4j\Client();
$query= "match (u:user{id:".$user_id."})-[r:knows]->(c:data)
set r.id=".$id."";
$result = new Everyman\Neo4j\Cypher\Query($client, $query);
请帮助,在此先感谢