2015-06-27 125 views
0

怎麼樣,我可以得到以下ID的節點細節優化的方式IN查詢基於節點ID - Neo4j的

val = [2,4,5,6,34,32,34,54,54,31] 

我想作爲,

WITH [2,4,5,6, ..] AS coll UNWIND coll AS x 
match p=(s.... 
return p 

我不能能夠得到它

回答

0
MATCH (p:SomeLabel) 
WHERE ID(p) IN [2,4,5,6] 
RETURN p 

應該這樣做。