Space Race/MATCH Tutorial
From NoSQLZoo
Visualisation
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 and the .
operator to access individual properties of a node.
Show the Surnames of Astronauts born in Russia rather than the USA
MATCH(n:Astronaut)-[:BORN_IN]-(c:Country) WHERE c.abbrev ='usa' RETURN n.surname, c.name;
MATCH(n:Astronaut)-[:BORN_IN]-(c:Country) WHERE c.abbrev= 'ru' RETURN n.surname;
Acknowledgements
NoSQLZoo is made possible by the following open-source technologies: