Using specific nodes for a Cypher query

…In this video, we're going to examine how to…start from a specific node when performing a Cypher query.…To start with, let's review what we've done to date.…We've generally started with a cypher query of MATCH n, or a,…or a d, or m, or whatever other node we're looking for.…Again, these are all just place holders but we're…really searching for a node, any node, and returning n.…When we do this, the first statement, MATCH…n, matches every single node in the graph.…

If we have a very, very large graph, this is…not necessarily desirable as it will slow down our queries.…What we want to do, sometimes, is start with…a very specific node, instead of starting with all nodes.…This can be accomplished with the WHERE clause.…The WHERE clause is a sister clause to the MATCH, and…it basically has the effects of filtering the initial set of results.…We're going to try this query in front of us right now.…MATCH n, any node, WHERE the node has a name that equals Tom Hanks.…

Notice because there is a space, that they are in brackets, or…

Resume Transcript Auto-Scroll

Author

Released

5/29/2014

Why are people abandoning their RDMS databases and switching to graph databases like Neo4j? It's more than a "big data" trend. Graph databases can handle more complex data and relationships, which are baked in at the record level. Take a trip through the nuances of the most popular graph database, Neo4j, with Duane Nickull and find out if it's right for your data. He covers key concepts, like transitions, searches, and traversals, and shows you how to work with nodes, the relationships between nodes, and navigate large graphs of information. Developers will be interested in the chapters devoted to Cypher, the query language for finding, creating, modifying, and deleting Neo4J data. There are ten coding challenges sprinkled throughout the course, allowing you to test your Cypher skills, and the exercise files feature a fun, interactive mini "IMDB" that explores data from your favorite movies.