这可能很容易,但我真的在努力解决这个问题。我使用gremlin python lib和aws neptune db。 我知道顶点id,我只想得到顶点的一个属性的值(python中的字符串类型),并更新它。你知道吗
我试过这样做:
print(g.V(event['securityEventManagerId']).values('sourceData'))
print(g.V(event['securityEventManagerId']).property('sourceData'))
print(g.V(event['securityEventManagerId']).property('sourceData').valueMap())
.....
但是我只打印了一些python gremlin对象,比如GraphTraversal
,无法将值检索为string
有人能帮我吗?你知道吗
必须使用终端步骤,否则查询将无法执行。你知道吗
来自tinkerpopdocumentation:
在您的情况下,您应该:
相关问题 更多 >
编程相关推荐