Cookies help us deliver our services. By using our services, you agree to our use of cookies. More information

Space Race/MATCH Tutorial

From NoSQLZoo
< Space Race
Revision as of 10:03, 27 November 2019 by ChrisHouston (talk | contribs)
Jump to: navigation, search

MATCH

Click here for 3d graph visualisation

Institutions

 Use MATCH and RETURN to show nodes that are Institutions rather than Astronauts

Show Institutions instead of Astronauts

MATCH(n:Astronaut) RETURN n;
MATCH(n:Institution) RETURN n; 

Born in Russia

 Use WHERE to specify conditions

Show Astronauts born in Russia rather than the USA

MATCH(n:Astronaut)-[:BORN_IN]-(c:Country) WHERE c.name = 'United States of America' RETURN n;
MATCH(n:Astronaut)-[:BORN_IN]-(c:Country) WHERE c.name = 'Russia' RETURN n;

Acknowledgements

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

jQuery JSHint CodeMirror MediaWiki MariaDB