Graph Database
Data has connection points to each other. Unlike regular Database/SQL or NoSQL database, we don't need to compute the relationship at query time because the connection is already there.
For example:
A query could look like this, which use Cypher
for (Neo4j
):
MATCH (person:Person {name: "John"})-[:POSTED]->(post:Post)
RETURN person.name AS postedBy, post.content AS postContent
Example: