New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] When vertex strategy is CUSTOMIZE_UUID, is there need to pass the id value in json? #2535
Comments
Yes, when using the
|
@dosu Hi, please see the code section below, what's wrong with this? {
"label": "person",
"properties": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "marko",
"age": 29
}
} {
"exception": "class java.lang.IllegalArgumentException",
"message": "Must customize vertex string id when id strategy is 'CUSTOMIZE_UUID' for vertex label 'person'",
"cause": ""
} |
The error you're encountering, {
"label": "person",
"id": "123e4567-e89b-12d3-a456-426614174000",
"properties": {
"name": "marko",
"age": 29
}
} In this corrected format, the
|
@dosu {
"label": "friend",
"outV": "123e4567-e89b-12d3-a456-426614174000",
"inV": "123e4567-e89b-12d3-a456-426614174001",
"outVLabel": "person_id",
"inVLabel": "person_id",
"properties": {}
} {
"exception": "class java.lang.IllegalArgumentException",
"message": "Invalid vertex id '123e4567-e89b-12d3-a456-426614174000'",
"cause": ""
} |
The error "Invalid vertex id '123e4567-e89b-12d3-a456-426614174000'" you're encountering when trying to construct an edge suggests a couple of potential issues to check:
To troubleshoot, you might start by querying the vertices separately to confirm their existence and labels in the graph. This step can help pinpoint whether the issue lies with the vertex ID, label mismatch, or another aspect of your graph setup.
|
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label |
Problem Type (问题类型)
None
Before submit
Environment (环境信息)
Your Question (问题描述)
当一个vertex的id策略为uuid时,即id可以自定义时,增加结点数据需要传入id值吗?我在官方的例子中没有看到相关示例
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: