javeme commented on issue #1918:
URL: 
https://github.com/apache/incubator-hugegraph/issues/1918#issuecomment-1174732833

   如果VertexLabel使用了`primaryKeys`的Id策略,依然报错“Expect source vertex 
id”,那应该还是`fastjson`的版本冲突导致,请尝试通过命令`mvn dependency:tree`查看具体冲突版本,并更换其它兼容版本试试。
   
   
注意:如果VertexLabel没有使用`primaryKeys`的Id策略,需要接收addVertex返回值然后把Vertex-Id赋值给Edge的sourceId:
   ```java
   v1 = graph.addVertex(v1)
   v2 = graph.addVertex(v2)
   Edge edge = new Edge("xx").source(v1).target(v2);
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to