【发布时间】:2019-03-29 15:17:08
【问题描述】:
使用 gremlin-javascript,我想执行“如果不存在则添加”事务,例如:
g.V()
.hasLabel('account').has('uid', '1')
.fold()
.coalesce(
g.V().unfold(),
g.V().addV('account').property('uid', '1')
)
我该如何表达这种查询?
【问题讨论】:
标签: javascript gremlin