我创建了一个带有自定义顶点 ID 的模式,例如:
schema.vertexLabel('foo').partitionKey('_id').ifNotExists().create()
然后我用数据填充了一个图表。现在我想通过 GraphSON 将该数据传输到另一个图表。新图实例具有相同的架构。
为此,我首先从填充的图表中导出数据:
graph.io(graphson()).writeGraph('/integration-data/flex-test-data.json')
但是,当我尝试将数据导入空图形实例时:
graph.io(graphson()).readGraph('/integration-data/flex-test-data.json')
我收到错误消息“具有自定义 ID 的顶点必须在创建时指定其 ID。” 这在我切换到自定义 ID 之前有效。我已确认 id 存在于导出的文件中。
这是不可能的吗?