【发布时间】:2020-09-28 05:14:10
【问题描述】:
我需要根据传递给inject()的列表创建不重复的顶点,该列表非常大,所以我需要使用inject()。我试过了,但没有用:
g.inject(["Macka", "Pedro", "Albert"]).unfold().map(
coalesce(
V().has("name", identity()),
addV("user").property("name", identity())
)
)
您可以在这里尝试: https://gremlify.com/765qiupxinw
为什么这不起作用? 看来 V().has() 是返回所有顶点,为什么呢?
【问题讨论】:
标签: gremlin tinkerpop tinkerpop3 gremlin-server azure-cosmosdb-gremlinapi