Skip to content

Commit acbfac9

Browse files
(fix): wrong explanation for client building
1 parent 13ef946 commit acbfac9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ weight: 2
1313

1414
HugeGraph-Client 是操作 graph 的总入口,用户必须先创建出 HugeGraph-Client 对象,与 HugeGraph-Server 建立连接(伪连接)后,才能获取到 schema、graph 以及 gremlin 的操作入口对象。
1515

16-
目前 HugeGraph-Client 只允许连接服务端已存在的图,无法自定义图进行创建。同时,需注意 1.7.0 后,构建 HugeGraph-Client 必须指定 GraphSpace(如默认 "DEFAULT")。其创建方法如下:
16+
目前 HugeGraph-Client 只允许连接服务端已存在的图,无法自定义图进行创建。1.7.0 版本后,client 支持 graphSpace 设置,默认为DEFAULT。其创建方法如下:
1717

1818
```java
1919
// HugeGraphServer 地址:"http://localhost:8080"
2020
// 图的名称:"hugegraph"
21-
HugeClient hugeClient = HugeClient.builder("http://localhost:8080", "DEFAULT", "hugegraph")
21+
HugeClient hugeClient = HugeClient.builder("http://localhost:8080", "hugegraph")
2222
.configTimeout(20) // 默认 20s 超时
2323
.configUser("**", "**") // 默认未开启用户权限
2424
.build();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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. Meanwhile, it should be noted that starting from version 1.7.0, building the HugeGraph-Client must specify a GraphSpace (e.g., the default "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"

0 commit comments

Comments
 (0)