cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

What do commas in Cypher do?

For example:
MATCH
(a)-->(b)<--(c),
(c)-->(d)

Or

MATCH ()-->() MATCH ()-->() RETURN 1
versus
MATCH ()-->(), ()-->() RETURN 1

1 REPLY 1

Commas separate parts of the same pattern.

Separate MATCH statements are different patterns.

The main implication of that is relationship uniqueness is guaranteed within the same pattern but not across different patterns.