Skip to content

Commit 952f68b

Browse files
checked
1 parent acbfac9 commit 952f68b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

content/cn/docs/clients/hugegraph-client.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ HugeGraph-Client 是操作 graph 的总入口,用户必须先创建出 HugeGra
1919
// HugeGraphServer 地址:"http://localhost:8080"
2020
// 图的名称:"hugegraph"
2121
HugeClient hugeClient = HugeClient.builder("http://localhost:8080", "hugegraph")
22+
//.builder("http://localhost:8080", "graphSpaceName", "hugegraph")
2223
.configTimeout(20) // 默认 20s 超时
2324
.configUser("**", "**") // 默认未开启用户权限
2425
.build();

content/en/docs/clients/hugegraph-client.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ The `gremlin(groovy)` written by the user in `HugeGraph-Studio` can refer to the
1212

1313
HugeGraph-Client is the general entry for operating graph. Users must first create a HugeGraph-Client object and establish a connection (pseudo connection) with HugeGraph-Server before they can obtain the operation entry objects of schema, graph and gremlin.
1414

15-
Currently, HugeGraph-Client only allows connections to existing graphs on the server, and cannot create custom graphs. After version 1.7.0, client has supported setting graphSpace, the default value for graphSpace is DEFAULT.Its creation method is as follows:
15+
Currently, HugeGraph-Client only allows connections to existing graphs on the server, and cannot create custom graphs. After version 1.7.0, client has supported setting graphSpace, the default value for graphSpace is DEFAULT. Its creation method is as follows:
1616

1717
```java
1818
// HugeGraphServer address: "http://localhost:8080"
1919
// Graph Name: "hugegraph"
2020
HugeClient hugeClient = HugeClient.builder("http://localhost:8080", "hugegraph")
21+
//.builder("http://localhost:8080", "graphSpaceName", "hugegraph")
2122
.configTimeout(20) // 20s timeout
2223
.configUser("**", "**") // enable auth
2324
.build();

0 commit comments

Comments
 (0)