O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required