<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://nosqlzoo.net/w/index.php?action=history&amp;feed=atom&amp;title=Neo4j%3AReference_-_MATCH</id>
	<title>Neo4j:Reference - MATCH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nosqlzoo.net/w/index.php?action=history&amp;feed=atom&amp;title=Neo4j%3AReference_-_MATCH"/>
	<link rel="alternate" type="text/html" href="https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;action=history"/>
	<updated>2026-04-21T09:34:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;diff=1297&amp;oldid=prev</id>
		<title>40166222: 40166222 moved page Neo4j:Reference: MATCH to Neo4j:Reference - MATCH without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;diff=1297&amp;oldid=prev"/>
		<updated>2018-10-15T16:06:02Z</updated>

		<summary type="html">&lt;p&gt;40166222 moved page &lt;a href=&quot;/w/index.php?title=Neo4j:Reference:_MATCH&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Neo4j:Reference: MATCH (page does not exist)&quot;&gt;Neo4j:Reference: MATCH&lt;/a&gt; to &lt;a href=&quot;/wiki/Neo4j:Reference_-_MATCH&quot; title=&quot;Neo4j:Reference - MATCH&quot;&gt;Neo4j:Reference - MATCH&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:06, 15 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>40166222</name></author>
	</entry>
	<entry>
		<id>https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;diff=1296&amp;oldid=prev</id>
		<title>40166222: 40166222 moved page Neo4j:Match to Neo4j:Reference: MATCH without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;diff=1296&amp;oldid=prev"/>
		<updated>2018-10-15T16:05:40Z</updated>

		<summary type="html">&lt;p&gt;40166222 moved page &lt;a href=&quot;/w/index.php?title=Neo4j:Match&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Neo4j:Match (page does not exist)&quot;&gt;Neo4j:Match&lt;/a&gt; to &lt;a href=&quot;/w/index.php?title=Neo4j:Reference:_MATCH&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Neo4j:Reference: MATCH (page does not exist)&quot;&gt;Neo4j:Reference: MATCH&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:05, 15 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>40166222</name></author>
	</entry>
	<entry>
		<id>https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;diff=1295&amp;oldid=prev</id>
		<title>40166222: temp</title>
		<link rel="alternate" type="text/html" href="https://nosqlzoo.net/w/index.php?title=Neo4j:Reference_-_MATCH&amp;diff=1295&amp;oldid=prev"/>
		<updated>2018-10-15T11:34:35Z</updated>

		<summary type="html">&lt;p&gt;temp&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial uses NoSQLZoo data but is based on Cypher documentation, available [https://neo4j.com/docs/developer-manual/current/cypher/clauses/match/#basic-node-finding here].&lt;br /&gt;
&lt;br /&gt;
==Get All Nodes==&lt;br /&gt;
&amp;lt;div class=&amp;quot;q&amp;quot; data-lang=&amp;quot;neo4j&amp;quot;&amp;gt;&lt;br /&gt;
By just specifying a pattern with a single node and no labels, all nodes in the graph will be returned.&lt;br /&gt;
&amp;lt;pre class=&amp;quot;def&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
MATCH (n)&lt;br /&gt;
RETURN n;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Get All Nodes With a Label==&lt;br /&gt;
&amp;lt;div class=&amp;quot;q&amp;quot; data-lang=&amp;quot;neo4j&amp;quot;&amp;gt;&lt;br /&gt;
Getting all nodes with a label on them is done with a single node pattern where the node has a label on it.&amp;lt;br/&amp;gt;&lt;br /&gt;
This query returns the names of all the gods in the graph.&amp;lt;br/&amp;gt;&lt;br /&gt;
Alternative syntax: &amp;lt;code&amp;gt;MATCH (n) WHERE n:God RETURN n;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;pre class=&amp;quot;def&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
MATCH (n:God)&lt;br /&gt;
RETURN n.name;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Related Nodes==&lt;br /&gt;
&amp;lt;div class=&amp;quot;q&amp;quot; data-lang=&amp;quot;neo4j&amp;quot;&amp;gt;&lt;br /&gt;
The Symbol &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt; means &amp;#039;&amp;#039;related to&amp;#039;&amp;#039;, without regard to type of direction of the relationship.&lt;br /&gt;
&amp;lt;p class=&amp;quot;strong&amp;quot;&amp;gt;Return all direct (one jump) relations of Zeus.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre class=&amp;quot;def&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
MATCH (:God {name: &amp;quot;Zeus&amp;quot;})--(relative)&lt;br /&gt;
RETURN relative.name;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Match With Labels==&lt;br /&gt;
&amp;lt;div class=&amp;quot;q&amp;quot; data-lang=&amp;quot;neo4j&amp;quot;&amp;gt;&lt;br /&gt;
To constrain your pattern with labels on nodes, you add it to your pattern nodes, using the label syntax.&lt;br /&gt;
&amp;lt;p class=&amp;quot;strong&amp;quot;&amp;gt;Return all direct (one jump) relations of Zeus where the relative is a plain old Mortal.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre class=&amp;quot;def&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
MATCH (:God {name: &amp;quot;Zeus&amp;quot;})--(relative:Mortal)&lt;br /&gt;
RETURN relative.name;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Relationship Basics==&lt;br /&gt;
&amp;lt;div class=&amp;quot;q&amp;quot; data-lang=&amp;quot;neo4j&amp;quot;&amp;gt;&lt;br /&gt;
When the direction of a relationship is of interest, it is shown by using &amp;lt;code&amp;gt;--&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;--&amp;lt;/code&amp;gt;, like this:&lt;br /&gt;
&amp;lt;p class=&amp;quot;strong&amp;quot;&amp;gt;Return all direct relations of Zeus where the relation is incoming.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre class=&amp;quot;def&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
MATCH (:God {name: &amp;quot;Zeus&amp;quot;})&amp;lt;--(relative)&lt;br /&gt;
// Same result: MATCH (relative)--&amp;gt;(:God {name: &amp;quot;Zeus&amp;quot;})&lt;br /&gt;
RETURN relative.name;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>40166222</name></author>
	</entry>
</feed>