Actions

Space Race: Difference between revisions

From NoSQLZoo

No edit summary
No edit summary
Line 3: Line 3:


<div class="q nonum" data-lang="neo4j">
<div class="q nonum" data-lang="neo4j">
   Use <code>MATCH</code> to show the roles of Hades rather than Apollo
   Use <code>MATCH</code> to show nodes that are Countries rather than Astronauts
   <p class='strong'>Show Hades instead of Apollo<p>
   <p class='strong'>Show Institutions instead of Astronauts<p>
   <pre class="def"><nowiki>MATCH(n:God{name:'Apollo'}) RETURN n.roles;</nowiki>
   <pre class="def"><nowiki>MATCH(n:Astronauts) RETURN n;</nowiki>
</pre>
</pre>
<pre class="ans"><nowiki>MATCH(n:God{name:'Hades'}) RETURN n.roles; </nowiki>
<pre class="ans"><nowiki>MATCH(n:Institutions) RETURN n; </nowiki>
</pre>
</pre>
</div>
</div>


{{Acknowledgements}}
{{Acknowledgements}}

Revision as of 10:26, 22 November 2019

Learn how to use Neo4j using data from the Space Race.

 Use MATCH to show nodes that are Countries rather than Astronauts

Show Institutions instead of Astronauts

MATCH(n:Astronauts) RETURN n;
MATCH(n:Institutions) RETURN n; 

Acknowledgements

NoSQLZoo is made possible by the following open-source technologies:

jQuery JSHint CodeMirror MediaWiki MariaDB
  • You have been served by: dill