【发布时间】:2018-03-22 00:31:40
【问题描述】:
这听起来很傻,但是有没有办法在 Gremlin 遍历中创建一个空数组?
对于下面的查询:
g.V().has('person','name', 'marko').project('a', 'b').by().by()
我想将b 投影为一个空数组。我试过了:
g.V().has('person','name', 'marko').project('a', 'b').by().by(constant("").fold())
但constant("").fold() 实际上不是空的,constant("").fold().count() 返回 1。这也适用于 constant(null).fold()。
【问题讨论】:
标签: gremlin datastax-enterprise-graph