Skip to content

Commit

Permalink
field clause required for go and fetch statements (#1823)
Browse files Browse the repository at this point in the history
* field clause required for go and fetch statements

* Update ngql-style-guide.md
  • Loading branch information
abby-cyber authored May 30, 2022
1 parent af468e8 commit 5d0c69e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs-2.0/3.ngql-guide/1.nGQL-overview/ngql-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ nGQL 没有严格的构建格式要求,但根据恰当而统一的风格创建
不推荐:

```ngql
go from "player100" over Follow
match (V:player) return V limit 5;
```

推荐:

```ngql
GO FROM "player100" OVER follow
MATCH (v:player) RETURN v LIMIT 5;
```

## Pattern
Expand Down Expand Up @@ -202,13 +202,13 @@ nGQL 没有严格的构建格式要求,但根据恰当而统一的风格创建
不推荐:

```ngql
FETCH PROP ON player "player100"
FETCH PROP ON player "player100" YIELD properties(vertex);
```

推荐:

```ngql
FETCH PROP ON player "player100";
FETCH PROP ON player "player100" YIELD properties(vertex);
```

2. 使用管道符(|)分隔的复合语句,仅在最后一行末用英文分号结尾。在管道符前使用英文分号会导致语句执行失败。
Expand Down

0 comments on commit 5d0c69e

Please sign in to comment.