Creating your first node and relationship using Cypher

In this recipe, you will learn to create nodes and relationships between them. Nodes can consist of various properties, which describes the nodes. Similarly, properties can also exist on relationships.

Getting ready

To step through this recipe, you will need to run an instance of the Neo4j Server. For the sake of simplicity, we will type the Cypher query from the Neo4j web console, as shown in the following screenshot. However, you can also send queries programmatically, using the language of your choice:

Getting ready

How to do it...

In this recipe, we are creating two airports, J.F Kennedy Airport, based in ...

Get Neo4j Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.