如何返回节点或关系数组中单个元素的属性?

时间:2014-11-27 11:59:34

标签: arrays neo4j

如果我有一个节点集合,每个节点都有名为Name的属性,那么如何为第二个元素返回该属性的值?

到目前为止,我已尝试过这些:

CollectionOfNodes[2](Name) AS Value
CollectionOfNodes[2].Name AS Value

感谢

1 个答案:

答案 0 :(得分:4)

尝试

(CollectionOfNodes[2]).Name as Value