dosubot[bot] commented on issue #653:
URL:
https://github.com/apache/incubator-hugegraph-toolchain/issues/653#issuecomment-2662556014
<!-- Answer -->
To resolve the error "Unrecognized field 'edgelabel_type'" when using the
loader to import data with the schema definition for edge labels in HugeGraph,
ensure that your JSON payload includes the `edgelabel_type` field. This field
is required by the `JsonEdgeLabel` class and should be one of the expected
values: "NORMAL", "PARENT", or "SUB".
Here's an example of how your JSON payload should include the
`edgelabel_type` field:
```json
{
"name": "your_edge_label_name",
"edgelabel_type": "NORMAL", // or "PARENT", "SUB" based on your
requirement
"source_label": "source_vertex_label",
"target_label": "target_vertex_label",
// other properties
}
```
Make sure that the `edgelabel_type` field is correctly spelled and matches
one of the expected values. If the field is missing or misspelled, it will
result in the "Unrecognized field" error
<sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/schema/EdgeLabelAPI.java)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/aa34bbc2-7816-419c-8ca4-d7ee7cd377bd?feedback_type=other)</sup>
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]