Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我在图形数据库中有一个顶点 {first_name, last_name}(本例中为 Neo4j)。
我可以通过以下方式获取这些属性中的任何一个
g.v(1).first_name => John g.v(1).last_name => Smith
我可以通过做得到所有的属性
g.v(1).map
我想弄清楚的是如何同时获取多个属性(连接属性),例如
g.v(1).some-magic-here => John Smith
可以使用转换步骤来完成
transform{closure}发出闭包的结果
所以,回答这个问题:
g.v(1).transform{it.first_name + ' ' + it.last_name} => John Smith