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

yield clause required in go and fetch #1388

Merged
merged 2 commits into from
May 31, 2022
Merged
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
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 @@ In nGQL statements, characters other than keywords, punctuation marks, and blank
Not recommended:

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

Recommended:

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

## Pattern
Expand Down Expand Up @@ -202,13 +202,13 @@ The strings should be surrounded by double quotes.
Not recommended:

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

Recommended:

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

2. Use a pipe (|) to separate a composite statement, and end the statement with an English semicolon at the end of the last line. Using an English semicolon before a pipe will cause the statement to fail.
Expand Down