【发布时间】:2021-11-27 09:19:43
【问题描述】:
我想根据日期过滤顶点。我不知道我必须从哪个包中引用 gt
graph = Graph()
remote_connection = DriverRemoteConnection(gremlin, 'g')
g = graph.traversal().withRemote(remote_connection)
serviceAcc=g.V().hasLabel('ServiceAccount').has('creationTime',TextP.gt(datetime.datetime('2021-10-05'))).valueMap(True).toList()
remote_connection.close()
【问题讨论】:
-
@kelvin:当我使用 [from gremlin_python.process.traversal import P] 时,我最终得到异常'{TypeError}需要一个整数(获取类型 str)'。
标签: python gremlin gremlinpython