无法添加新顶点

Unable to add new vertex

我正在尝试添加一个 属性 的新顶点,其值是一个巨大的字符串。 这是通过使用 gremlin_python。 示例代码:

vertex = g.addV(label).next()
res = g.V(vertex).property('key', 'this_is_a_huge_string')

我感觉到你的问题是你没有迭代你的第二次遍历:

vertex = g.addV(label).next()
res = g.V(vertex).property('key', 'this_is_a_huge_string').next()

请注意,最好将其写成单个语句:

vertex = g.addV(label).property('key', 'this_is_a_huge_string').next()