PrepZone Logo
PrepZone
Back to Database

Database · Medium

When do you use a graph database like Neo4j? Explain nodes, relationships, and Cypher.

DatabaseNoSQLSeniorGraph

Answer preview

A graph database stores data as nodes (entities) and relationships (typed, directed edges), both of which can hold properties. It is the right choice when the connections are as important as the records, and queries traverse many hops.…