Gremlin Python:属性存在性检查
我似乎无法找到一种惯用的方法来过滤具有或不具有特定属性(无论其值如何)的节点 属性存在:Gremlin Python:属性存在性检查,gremlin,tinkerpop3,Gremlin,Tinkerpop3,我似乎无法找到一种惯用的方法来过滤具有或不具有特定属性(无论其值如何)的节点 属性存在: > g.V().hasNot('weight', None).toList() *** gremlin_python.driver.protocol.GremlinServerError: 599: Could not locate method: DefaultGraphTraversal.hasNot([weight, null]) 属性不存在: > g.V().has('weight',
> g.V().hasNot('weight', None).toList()
*** gremlin_python.driver.protocol.GremlinServerError: 599: Could not locate method: DefaultGraphTraversal.hasNot([weight, null])
属性不存在:
> g.V().has('weight', None).toList()
*** gremlin_python.driver.protocol.GremlinServerError: 599: null:has([weight, null])
hasKey()
不返回任何结果:
> g.V().hasKey('weight')
使用gremlin server 3.3.4噢,结果是这样的:
g.V().has('weight')
只是在文档中很难找到:哦,原来这是可行的:
g.V().has('weight')
在文档中很难找到:从这里得到了hasNot()的想法:从这里得到了hasNot()的想法: