1
FETCH PROP ON person "..." YIELD properties(person).name as name, properties(vertex).age as age
| GROUP BY $-.name YIELD $-.name, max($-.age) as max_age

FETCH PROP ON person "..." YIELD properties(person).name as name, properties(vertex).age as age
| YIELD $-.name, max($-.age) as max_age

As title, is there a difference between using the YIELD statement independently and the GROUP combination YIELD clause?

foesa Yang
  • 26
  • 5

1 Answers1

0

Equivalent syntax. The yield clause of native ngql supports both implicit and explicit groupby, where implicit groupby behavior is consistent with cypher standards. For details,see neo4j docs.

Cooper
  • 120
  • 9