Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bolt client example in the document #823

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading