Skip to Content
Cypher ManualQuery ClausesQuery Clauses

Query Clauses

In this chapter, we mainly introduce NeuG query-related Clauses operations. The following table summarizes the types and general purposes of these operations:

ClauseDescription
MATCHFind Graph Pattern
WHEREFilter based on properties
WITHProjection or Aggregation based on properties
RETURNOutput Projection or Aggregation results
ORDERFurther sort intermediate or output results
SKIPSkip the top portion of results, determine the lower bound of output results
LIMITTruncate results, determine the upper bound of output results
UNIONMerge multiple branch results with consistent schema

We will use the modern graph  as an example to introduce what each Clause specifically does.