Introduction
Neo4j is a very powerful tool for storing, querying, and manipulating data. The relationship model on which the graph database structure is based gives the user the flexibility to map any domain-specific data into the Neo4j database. However, modeling data as Neo4j graphs is very different from modeling data into relational databases, such as Oracle, MySQL, and so on. These are especially useful when we have a domain that has lots of relationships.
In this chapter, we will cover various aspects of data modeling using Neo4j and how they differ from relational databases with the help of domain-specific examples. We will also learn the impact of this on flexibility, complexity, and performance.
Before trying our first recipe, let's do a recap of the basic building blocks of the Neo4j graph database.
These are the two fundamental building blocks of any Neo4j graph database:
- Nodes: These are used to represent entities in a particular domain. Any two nodes in the graph database...