FINISH
A query ending in FINISH
— instead of RETURN
— has no result but executes all its side effects.
FINISH
was introduced as part of Cypher®'s GQL conformance.
The following read query successfully executes but has no results:
Query
MATCH (p:Person)
FINISH
The following query has no result but creates one node with the label Person
:
Query
CREATE (p:Person)
FINISH
It is equivalent to the following query:
Query
CREATE (p:Person)