Skip to content

Commit

Permalink
In the Bolt documentation, when creating a vertex type, enclose the d…
Browse files Browse the repository at this point in the history
…ata type in quotation marks.
  • Loading branch information
zhangwh807 committed Dec 17, 2024
1 parent 2518337 commit e8950fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en-US/source/7.client-tools/5.bolt-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/source/7.client-tools/5.bolt-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\"]]')");
//创建索引
Expand Down

0 comments on commit e8950fa

Please sign in to comment.