Skip to content

Commit

Permalink
Add-collect()-examples (#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored Nov 16, 2022
1 parent 4eaef37 commit 3321edd
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,31 @@ nebula> MATCH (n:player) \
| 25 | ["Joel Embiid", "Kyle Anderson"] |
+-----+--------------------------------------------------------------------------+
...
nebula> GO FROM "player100" OVER serve \
YIELD properties($$).name AS name \
| GROUP BY $-.name \
YIELD collect($-.name) AS name;
+-----------+
| name |
+-----------+
| ["Spurs"] |
+-----------+
nebula> LOOKUP ON player \
YIELD player.age As playerage \
| GROUP BY $-.playerage \
YIELD collect($-.playerage) AS playerage;
+------------------+
| playerage |
+------------------+
| [22] |
| [47] |
| [43] |
| [25, 25] |
+------------------+
...
```

## 聚合示例
Expand Down

0 comments on commit 3321edd

Please sign in to comment.