Neo4j Cypher:在中的何处传递多个参数

Neo4j Cypher:在中的何处传递多个参数,neo4j,cypher,neo4jphp,Neo4j,Cypher,Neo4jphp,如何传递WHERE条件的参数 事实上,这很好: match (b:Book) where b.guid={guid} return b; 但是,如何将多个GUI作为此查询的参数传递: match (b:Book) where b.guid in [guid1,guid2,gid3] return b; 我使用的是客户端,我的代码如下: $client = new Everyman\Neo4j\Client( "neo4j server address", "7474" ); $result

如何传递WHERE条件的参数

事实上,这很好:

match (b:Book) where b.guid={guid} return b;
但是,如何将多个GUI作为此查询的参数传递:

match (b:Book) where b.guid in [guid1,guid2,gid3] return b;
我使用的是客户端,我的代码如下:

$client = new Everyman\Neo4j\Client( "neo4j server address", "7474" );
$result = new Everyman\Neo4j\Cypher\Query( $client, "match (b:Book) where b.guid={guid} return b", array('guid'=>$guid1) );
$res = $result->getResultSet();

应将数组作为参数传递,查询如下所示:

match (b:Book) where b.guid in {myMap} return b;


$client = new Everyman\Neo4j\Client( "neo4j server address", "7474" );
$result = new Everyman\Neo4j\Cypher\Query( $client, "match (b:Book) where b.guid in {MyMap} return b", array('myMap'=> array($guid1, $guid2, $guid3)) );
$res = $result->getResultSet();

非常感谢。这似乎对我不起作用。我再查一下。我使用的是neo4j-community-2.1.5,您可以在查询中尝试使用它。在[{myMap}]谢谢,我会试试这个。