diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md b/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md index 54b16c3f0fe..9b1f02cee82 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md @@ -152,9 +152,9 @@ nebula> GO FROM "player100" OVER follow REVERSELY \ +---------------------+-----------------+ | FriendOf | Team | +---------------------+-----------------+ -| "Danny Green" | "Spurs" | -| "Danny Green" | "Cavaliers" | -+---------------------+-----------------+ +| "Boris Diaw" | "Spurs" | +| "Boris Diaw" | "Jazz" | +| "Boris Diaw" | "Suns" | ... # 该MATCH查询与上一个GO查询具有相同的语义。 @@ -164,34 +164,9 @@ nebula> MATCH (v)<-[e:follow]- (v2)-[e2:serve]->(v3) \ +---------------------+-----------------+ | FriendOf | Team | +---------------------+-----------------+ -| "Tony Parker" | "Spurs" | -| "Tony Parker" | "Hornets" | -+---------------------+-----------------+ -... -``` - -```ngql -# 返回player102所有邻居点。 -nebula> GO FROM "player102" OVER follow \ - YIELD dst(edge) AS both; -+-------------+ -| both | -+-------------+ -| "player100" | -| "player101" | -+-------------+ -... - -# 该MATCH查询与上一个GO查询具有相同的语义。 -nebula> MATCH (v) -[e:follow]-(v2) \ - WHERE id(v)== "player102" \ - RETURN id(v2) AS both; -+-------------+ -| both | -+-------------+ -| "player101" | -| "player103" | -+-------------+ +| "Boris Diaw" | "Spurs" | +| "Boris Diaw" | "Jazz" | +| "Boris Diaw" | "Suns" | ... ``` @@ -204,7 +179,6 @@ nebula> GO 1 TO 2 STEPS FROM "player100" OVER follow \ +-------------+ | "player101" | | "player125" | -+-------------+ ... # 该MATCH查询与上一个GO查询具有相同的语义。 @@ -216,7 +190,7 @@ nebula> MATCH (v) -[e:follow*1..2]->(v2) \ +-------------+ | "player100" | | "player102" | -+-------------+ +... ``` ```ngql