Skip to content

Commit

Permalink
update (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Aug 25, 2021
1 parent f001cc9 commit c0ef955
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ nebula> LOOKUP ON player \
YIELD player.age As playerage \
| GROUP BY $-.playerage \
YIELD $-.playerage as age, count(*) AS number \
| ORDER BY number DESC, age DESC;
| ORDER BY $-.number DESC, $-.age DESC;
+-----+--------+
| age | number |
+-----+--------+
Expand Down
2 changes: 1 addition & 1 deletion docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ YIELD <var>
# 从排序结果中返回第2行开始的3行数据。
nebula> GO FROM "player100" OVER follow REVERSELY \
YIELD $$.player.name AS Friend, $$.player.age AS Age \
| ORDER BY Age,Friend \
| ORDER BY $-.Age, $-.Friend \
| LIMIT 1, 3;
+-------------------+-----+
| Friend | Age |
Expand Down
2 changes: 1 addition & 1 deletion docs-2.0/3.ngql-guide/8.clauses-and-options/where.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ nebula> GO FROM "1" \
OVER e1 \
WHERE e1._rank>2 \
YIELD e1._src, e1._dst, e1._rank AS Rank, e1.p1 | \
ORDER BY Rank DESC;
ORDER BY $-.Rank DESC;
====================================
| e1._src | e1._dst | Rank | e1.p1 |
====================================
Expand Down

0 comments on commit c0ef955

Please sign in to comment.