【发布时间】:2018-10-30 14:11:11
【问题描述】:
我正在根据一个属性选择一个顶点,然后想要在起始顶点的“上游”路径中找到所有具有链接的顶点。我可以做得很好,但我只想返回顶点 id 和其他几个属性。
g.V('1').repeat(out('UPSTREAM')).until(outE('UPSTREAM').count().is(0)).simplepath()
以上工作正常,但我如何只返回我想要的属性?
我试过了:
g.V('1').repeat(out('UPSTREAM')).until(outE('UPSTREAM').count().is(0)).simplepath().by('id').by('name')
但得到异常
Error
Failed to execute query: g.V('1').repeat(out('UPSTREAM')).until(outE('UPSTREAM').count().is(0)).simplepath().by('id').by('name'):
Error with status code: 499. Message:
ActivityId : 5a41d663-b1f1-41a4-b11e-abd258f17b01 ExceptionType :
GraphNotYetImplementedException ExceptionMessage :
Not Yet Implemented: ModulateBy(traversal) Source :
Microsoft.Azure.Graphs GremlinRequestId : 5a41d663-b1f1-41a4-b11e-abd258f17b01 Context : graphcompute Scope :
graphcmd-invoke GraphInterOpStatusCode : InvalidRequestArguments HResult : 0x80131500
【问题讨论】:
标签: path azure-cosmosdb gremlin