aaawuanjun opened a new issue, #2543:
URL: https://github.com/apache/incubator-hugegraph/issues/2543

   ### Problem Type (问题类型)
   
   rest-api (结果不合预期)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.3.0 (Apache Release Version)
   - Backend: RocksDB x nodes, HDD or SSD 
   - OS: 10 CPUs, 32 G RAM, CentOS 7.6
   - Data Size:  3 vertices, 0 edges 
   
   
   ### Your Question (问题描述)
   
   when I use create edge rest api,  vertices id use uuid.
   
   create edge cause error:
   Invalid vertex id '3b567246-d408-461f-b481-a899d1477e0d'
   
   
![image](https://github.com/apache/incubator-hugegraph/assets/35732071/25191959-a38c-4731-a04c-167138f3aace)
   
   
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   request url: http://172.16.12.150:8080/graphs/hugegraph/graph/edges
   request body:
   
   {
       "label": "pstudent",
       "outV": "3b567246-d408-461f-b481-a899d1477e0d",
       "inV": "a9a0e424-129b-487d-a089-6372673ebedc",
       "outVLabel": "person",
       "inVLabel": "student",
       "properties": {
           "date": "20171210",
           "weight": 0.4
       }
   }
   
   
   response:
   ```text
   {
       "exception": "class java.lang.IllegalArgumentException",
       "message": "Invalid vertex id '3b567246-d408-461f-b481-a899d1477e0d'",
       "cause": ""
   }
   ```
   ```
   
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   {
       "propertykeys": [
           {
               "id": 2,
               "name": "name",
               "data_type": "TEXT",
               "cardinality": "SINGLE",
               "aggregate_type": "NONE",
               "write_type": "OLTP",
               "properties": [],
               "status": "CREATED",
               "user_data": {
                   "~create_time": "2024-05-23 14:18:11.467"
               }
           },
           {
               "id": 1,
               "name": "age",
               "data_type": "INT",
               "cardinality": "SINGLE",
               "aggregate_type": "NONE",
               "write_type": "OLTP",
               "properties": [],
               "status": "CREATED",
               "user_data": {
                   "~create_time": "2024-05-23 14:15:54.949"
               }
           }
       ],
       "vertexlabels": [
           {
               "id": 1,
               "name": "person",
               "id_strategy": "CUSTOMIZE_UUID",
               "primary_keys": [],
               "nullable_keys": [],
               "index_labels": [],
               "properties": [
                   "age",
                   "name"
               ],
               "status": "CREATED",
               "ttl": 0,
               "enable_label_index": true,
               "user_data": {
                   "~create_time": "2024-05-23 14:18:24.930"
               }
           },
           {
               "id": 2,
               "name": "student",
               "id_strategy": "CUSTOMIZE_UUID",
               "primary_keys": [],
               "nullable_keys": [],
               "index_labels": [],
               "properties": [
                   "age",
                   "name"
               ],
               "status": "CREATED",
               "ttl": 0,
               "enable_label_index": true,
               "user_data": {
                   "~create_time": "2024-05-23 14:18:50.909"
               }
           }
       ],
       "edgelabels": [],
       "indexlabels": []
   }
   ```
   


-- 
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]

Reply via email to