Tommu10ve opened a new issue, #2777: URL: https://github.com/apache/incubator-hugegraph/issues/2777
### Problem Type (问题类型) None ### 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.5.0 (Apache Release Version) ### Your Question (问题描述) PrimaryKey(主键属性) 顶点创建:用主键属性(如 id)作为唯一标识,无需显式指定顶点ID。 示例: groovy schema.vertexLabel("person").primaryKeys("id").create(); graph.addVertex(T.label, "person", "id", "pk_001", "name", "张三"); graph.addVertex(T.label, "person", "id", "pk_002", "name", "李四"); graph.addEdge(T.label, "knows", T.source, "pk_001", // 源顶点主键值 T.target, "pk_002"); // 目标顶点主键值 ### Vertex/Edge example (问题点 / 边数据举例) ```javascript ``` ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) ```javascript ``` -- 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: dev-unsubscr...@hugegraph.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org