Nodes, relationships, properties, Cypher query basics, traversals and graph modeling use cases.
35 cards · basic cards · AI-written, checked twice. Edit anything.
- What is a node in a graph database?
Show answer
A fundamental data structure representing an entity or object in the graph
- What is a relationship in a graph database?
Show answer
A connection or edge between two nodes representing how entities are associated
- What is a property in a graph database?
Show answer
A key-value pair storing attributes or metadata about a node or relationship
- What does it mean to label a node in Neo4j?
Show answer
To assign a category or type to a node, written as :LabelName
- Can a single node in Neo4j have multiple labels?
Show answer
Yes, a node can have multiple labels to represent multiple categories
- What is a directed relationship?
Show answer
A relationship with a specific direction, flowing from one node to another
- Can Neo4j store properties on relationships?
Show answer
Yes, relationships can have properties just like nodes
- What is Cypher?
Show answer
A declarative query language designed for Neo4j to work with graph data
- What does the MATCH clause do in Cypher?
Show answer
Specifies a pattern to search for in the graph
- What does the WHERE clause do in Cypher?
Show answer
Filters matched results by applying conditions
- What does the RETURN clause do in Cypher?
Show answer
Specifies which data to return from the query result
- What does the CREATE clause do in Cypher?
Show answer
Creates new nodes or relationships in the graph
- What does the SET clause do in Cypher?
Show answer
Sets or updates properties on existing nodes or relationships
- What does the DELETE clause do in Cypher?
Show answer
Removes nodes and relationships from the graph
- What does the MERGE clause do in Cypher?
Show answer
Creates a node or relationship if it does not exist, or updates it if it does