Skip to content

Commit

Permalink
Update Cypher.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 20, 2025
1 parent 72c4092 commit 0ffa517
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/Cypher.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This GSQL tutorial contains
- [Node Pattern](#node-pattern)
- [Edge Pattern](#edge-pattern)
- [Path Pattern](#path-pattern)
- [Optional Match](#optional-match)
- [With Clause](#with-clause)
- [Sorting and Limiting Results](#sorting-and-limiting-results)
- [Working With List](#working-with-list)
Expand Down Expand Up @@ -348,6 +349,9 @@ The result is shown in [c8.out](https://github.com/tigergraph/ecosys/blob/master

[Go back to top](#top)

## Optional Match
`OPTIONAL MATCH` matches patterns against your graph, just like MATCH does. The difference is that if no matches are found, OPTIONAL MATCH will use a null for missing parts of the pattern.

## With Clause

The WITH clause in Cypher is used to chain parts of a query, pass intermediate results to the next part, or perform transformations like aggregation. It acts as a way to manage query scope and handle intermediate data without exposing everything to the final result.
Expand Down

0 comments on commit 0ffa517

Please sign in to comment.