fenganhao commented on issue #2732:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2732#issuecomment-2662323245

   > Hey [@fenganhao](https://github.com/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.
   > 
   > 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:
   > 
   > {
   >     "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 
[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/schema/EdgeLabelAPI.java).
   > 
   > _To continue talking to [Dosu](https://dosu.dev), mention 
[@dosu](https://github.com/dosu)._
   > 
   > 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)
   
   @dosu EdgeLabel is used to define the edge type and describe the constraint 
information of the edge.
   
   The constraint information that EdgeLabel allows to define include: name, 
sourceLabel, targetLabel, frequency, properties, sortKeys and nullableKeys, 
which are introduced one by one below.
   
   There is not "edgelabel_type" in edge_groovy


-- 
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: issues-unsubscr...@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@hugegraph.apache.org
For additional commands, e-mail: issues-h...@hugegraph.apache.org

Reply via email to