gpt4 book ai didi

gremlin - 按 Gremlin 中的顶点分组

转载 作者:行者123 更新时间:2023-12-04 01:58:00 26 4
gpt4 key购买 nike

我有这样的结构:

组 -> 字段 -> 值

和命令 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com