October 2018
Intermediate to advanced
332 pages
8h 9m
English
Designed to describe and then query relationships, graph databases are like document stores, but have mechanisms to create and describe links between two nodes.
A node is like an instance of an object, usually a collection of key-value pairs or a JSON document. Nodes can be given labels to mark them as part of a category—for example, a user or a group. After your nodes have been defined, an arbitrary number of one-way relationships between the nodes, named links, can be created with their own attributes. For example, if our data had two user nodes and each of the two users knew each other, we would define two knows links between them to describe that relationship, as shown in the following diagram. This would allow you to ...