From 42402477c8744f989c7505243220521bd2b5e444 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Mon, 14 Mar 2022 13:58:46 +0800 Subject: [PATCH] Update 6.cheatsheet-for-ngql.md --- docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md b/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md index cb5c1c1f92a..febcb8b7a05 100644 --- a/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md +++ b/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md @@ -270,10 +270,10 @@ | ------------------- | ------------------------------------------------------------ | ---------------------------------------------- | | Retrieve vertices | `LOOKUP ON player WHERE player.name == "Tony Parker" YIELD player.name AS name, player.age AS age` | The following example returns vertices whose `name` is `Tony Parker` and the tag is `player`. | | Retrieve edges | `LOOKUP ON follow WHERE follow.degree == 90 YIELD follow.degree` | Returns edges whose `degree` is `90` and the edge type is `follow`. | - | List vertices with a tag | `LOOKUP ON player` | Shows how to retrieve the VID of all vertices tagged with `player`. | - | List edges with an edge types | `LOOKUP ON like` | Shows how to retrieve the source Vertex IDs, destination vertex IDs, and ranks of all edges of the `like` edge type. | - | Count the numbers of vertices or edges | `LOOKUP ON player | YIELD COUNT(*) AS Player_Number` | Shows how to count the number of vertices tagged with `player`. | - | Count the numbers of edges | `LOOKUP ON like | YIELD COUNT(*) AS Like_Number` | Shows how to count the number of edges of the `like` edge type. | + | List vertices with a tag | `LOOKUP ON player YIELD properties(vertex),id(vertex)` | Shows how to retrieve the VID of all vertices tagged with `player`. | + | List edges with an edge types | `LOOKUP ON like YIELD edge AS e` | Shows how to retrieve the source Vertex IDs, destination vertex IDs, and ranks of all edges of the `like` edge type. | + | Count the numbers of vertices or edges | `LOOKUP ON player YIELD id(vertex)| YIELD COUNT(*) AS Player_Count` | Shows how to count the number of vertices tagged with `player`. | + | Count the numbers of edges | `LOOKUP ON like YIELD id(vertex)| YIELD COUNT(*) AS Like_Count` | Shows how to count the number of edges of the `like` edge type. |