Skip to content

Commit

Permalink
Update 2.user-defined-variables.md (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored Jan 11, 2023
1 parent d3fc7d7 commit 2f1b711
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ nebula> MATCH (v:player{name:"Tim Duncan"}) RETURN v;

The user-defined variable in the preceding query is `v`.

!!! caution

In a pattern of a MATCH statement, you cannot use the same edge variable repeatedly. For example, `e` cannot be written in the pattern `p=(v1)-[e*2..2]->(v2)-[e*2..2]->(v3)`.

## Native nGQL

User-defined variables are written as `$var_name`. The `var_name` consists of letters, numbers, or underline characters. Any other characters are not permitted.
Expand Down

0 comments on commit 2f1b711

Please sign in to comment.