我有这样的结构:
组 -> 字段 -> 值
和命令 g.V().hasLabel('groups').out('fields').out('values')
如何按字段和“组”顶点对这些值进行分组?
谢谢
最佳答案
这是 answered on the Gremlin Users list by Daniel Kuppitz :
g.V().hasLabel("groups"). group(). by(). by(out("fields"). group(). by(). by(out("values").fold()))
关于gremlin - 按 Gremlin 中的顶点分组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49331444/