From e8950fa8b7fc66b14e26ea5fa67c712392ae7b50 Mon Sep 17 00:00:00 2001 From: zhangwenhao Date: Tue, 17 Dec 2024 18:14:02 +0800 Subject: [PATCH] In the Bolt documentation, when creating a vertex type, enclose the data type in quotation marks. --- docs/en-US/source/7.client-tools/5.bolt-client.md | 2 +- docs/zh-CN/source/7.client-tools/5.bolt-client.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en-US/source/7.client-tools/5.bolt-client.md b/docs/en-US/source/7.client-tools/5.bolt-client.md index 7861c59a9b..6363d5fddd 100644 --- a/docs/en-US/source/7.client-tools/5.bolt-client.md +++ b/docs/en-US/source/7.client-tools/5.bolt-client.md @@ -33,7 +33,7 @@ Common statements: //Clear the graph project, please do not attempt this lightly as it will delete both the schema and data of the selected graph project. session.run("CALL db.dropDB()"); //Create vertex - session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,INT32, false, 'name' ,STRING, false)"); + session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,'INT32', false, 'name' ,'STRING', false)"); //Create edge session.run("CALL db.createEdgeLabel('is_friend','[[\"person\",\"person\"]]')"); //Create index diff --git a/docs/zh-CN/source/7.client-tools/5.bolt-client.md b/docs/zh-CN/source/7.client-tools/5.bolt-client.md index c00f3f0120..5d3d20b850 100644 --- a/docs/zh-CN/source/7.client-tools/5.bolt-client.md +++ b/docs/zh-CN/source/7.client-tools/5.bolt-client.md @@ -31,7 +31,7 @@ Client按照如下格式进行实例化: //清空图项目,请不要轻易尝试,它会清空你选中的图项目的模型以及数据 session.run("CALL db.dropDB()"); //创建点模型 - session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,INT32, false, 'name' ,STRING, false)"); + session.run("CALL db.createVertexLabel('person', 'id' , 'id' ,'INT32', false, 'name' ,'STRING', false)"); //创建边模型 session.run("CALL db.createEdgeLabel('is_friend','[[\"person\",\"person\"]]')"); //创建索引