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:

Pasted image 20230728221422.png

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: