dosubot[bot] commented on issue #2732:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2732#issuecomment-2662240557

   <!-- Greeting -->
   Hey @fenganhao! I'm here to help you with any bugs, questions, or 
contributions you have regarding the issue you've encountered. Let's work 
together to resolve this issue.
   
   <!-- 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 the JSON data being sent to the API includes the field 
"edgelabel_type" as it is defined in the `JsonEdgeLabel` class. The 
`JsonEdgeLabel` class has a property `edgelabel_type` of type `EdgeLabelType`, 
which should be included in your JSON payload.
   
   Here is 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: "NORMAL", "PARENT", or "SUB". 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/2c569667-4660-4d3e-9fa9-b3323de250c8?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/2c569667-4660-4d3e-9fa9-b3323de250c8?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/2c569667-4660-4d3e-9fa9-b3323de250c8?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/2c569667-4660-4d3e-9fa9-b3323de250c8?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2c569667-4660-4d3e-9fa9-b3323de250c8?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/2c569667-4660-4d3e-9fa9-b3323de250c8?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2c569667-4660-4d3e-9fa9-b3323de250c8?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]

Reply via email to