Neo4j – Match Queries


MATCH (n:Materials)
RETURN n
MATCH (n:Materials)
OPTIONAL MATCH (n)–(m)
RETURN n,m LIMIT 20
 
MATCH (n:Materials)
OPTIONAL MATCH (n)–(m)
OPTIONAL MATCH (m)–(o)
RETURN n,m,o LIMIT 20
MATCH path=(:Materials)
RETURN path
MATCH path=(:Materials)–>( )
RETURN path
MATCH path=(:Materials)–>(:Category)
RETURN path
MATCH path=(:Materials)-[*..1]->()
RETURN path
MATCH path=(:Materials)-[*..2]->()
RETURN path
MATCH path=(:Materials)-[*]->()
RETURN path

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Up ↑

%d bloggers like this: