You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
调用VertexApi.update()接口报错
com.baidu.hugegraph.exception.ServerException: Automatic Id strategy is not supported now
at com.baidu.hugegraph.exception.ServerException.fromResponse(ServerException.java:47)
at com.baidu.hugegraph.client.RestClient.checkStatus(RestClient.java:93)
at com.baidu.hugegraph.rest.AbstractRestClient.put(AbstractRestClient.java:264)
at com.baidu.hugegraph.rest.AbstractRestClient.put(AbstractRestClient.java:244)
at com.baidu.hugegraph.api.graph.VertexAPI.update(VertexAPI.java:74)
Problem Type (问题类型)
other exception / error (其他异常报错)
Before submit
Environment (环境信息)
Your Question (问题描述)
顶点类型使用主键策略为 “自动生成” 策略,调用接口入参
{
"updateStrategies": {
"override": "OVERRIDE"
},
"vertices": [{
"id": 626367419253784576,
"label": "人",
"properties": {
"名称": "朱棣",
"年龄": 65,
"地址": "北京市xxx"
}
}
]
}
调用VertexApi.update()接口报错
com.baidu.hugegraph.exception.ServerException: Automatic Id strategy is not supported now
at com.baidu.hugegraph.exception.ServerException.fromResponse(ServerException.java:47)
at com.baidu.hugegraph.client.RestClient.checkStatus(RestClient.java:93)
at com.baidu.hugegraph.rest.AbstractRestClient.put(AbstractRestClient.java:264)
at com.baidu.hugegraph.rest.AbstractRestClient.put(AbstractRestClient.java:244)
at com.baidu.hugegraph.api.graph.VertexAPI.update(VertexAPI.java:74)
但是如果主键策略为自定义数字等策略就可以正常调用。这个如何解决
Vertex/Edge example (问题点 / 边数据举例)
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
The text was updated successfully, but these errors were encountered: