Nodes
Entities in the domain. A node may have zero or more labels and a map of properties. Nodes without relationships still exist as independent vertices.
Study guide · Core notes
Reference notes for Neo4j Certified Professional. Each section names the object, and what you check in a database you are allowed to drop.
How to read these notes: Unmarked items sit on the public GraphAcademy certification areas or the Neo4j docs they point at. Items tagged Extra are job context that the exam outline does not require. New to the exam? Start with the overview. Practice in a database you can remove. Official topic percentages are unpublished; weights below are editorial equals.
20% editorial. Nodes, relationships, labels, properties, direction.
Entities in the domain. A node may have zero or more labels and a map of properties. Nodes without relationships still exist as independent vertices.
First-class directed connections with a type name, start node, end node, and optional properties. Undirected MATCH patterns are a query convenience; storage remains directed.
Labels classify nodes (:Person). Relationship types name edges (:KNOWS). Do not conflate the two CREATE forms.
Key-value attributes on nodes or relationships. Put edge-specific facts (strength, since) on the relationship, not duplicated on both endpoints. Extra Exact supported property types evolve by version.
20% editorial. Reading, writing, aggregation, indexes.
MATCH binds patterns; WHERE filters bindings. Disconnected MATCH patterns (comma-separated) can explode into Cartesian products.
CREATE always inserts. MERGE matches or creates. ON CREATE / ON MATCH refine property updates for new versus existing patterns.
DELETE fails while relationships remain on a node. DETACH DELETE removes relationships first, then the node. REMOVE drops properties or labels—not graph elements.
WITH pipelines and aggregates; UNWIND expands lists. Uniqueness constraints create supporting indexes. Range, text, and full-text indexes serve different lookups. Extra Constraint and index syntax details vary by edition and version.
20% editorial. Design decisions and anti-patterns.
If a fact connects two entities or has edge attributes, prefer a relationship. Simple attributes of one entity stay on that node.
Prefer :PURCHASED or :REPORTS_TO over a catch-all :RELATED. Specific types keep MATCH selective and readable.
Reify an association as a node when it has rich structure, lifecycle, or links to other entities (for example threaded comments on a rating).
Supernodes that fan out to everything, packed ID lists instead of relationships, and join-table nodes when a typed relationship would suffice.
20% editorial. LOAD CSV and batching.
Read rows from an allowed file URL or import directory. WITH HEADERS exposes columns by name. Convert strings with toInteger/toFloat as needed.
MERGE on business keys so re-runs do not multiply duplicates. Uniqueness constraints catch accidental CREATE collisions.
CALL { ... } IN TRANSACTIONS commits in chunks and must run in an implicit transaction; use :auto in Neo4j Browser. One giant transaction can exhaust memory.
Load nodes before edges. Cleanse CSV encoding and nulls first; skip incomplete rows with WHERE; diagnose failed batches before replaying. Extra neo4j-admin database import suits huge offline initial loads.
20% editorial. Drivers, Bolt, parameters.
Official drivers speak Bolt. Create one driver per process, open sessions for work, and close the driver on shutdown.
Pass values as $parameters. Never concatenate untrusted input into Cypher text. Current Cypher supports dynamic labels with $(expression), including parameters; MATCH (n:$label) is invalid. Validate any UI-selected labels or types against an allowlist.
Use read/write transaction functions for clear boundaries and transient retries. Multi-statement integrity needs one shared write transaction.
Writes route to a writer; reads may use readers. Bookmarks provide causal consistency so a later session can read its own writes. Extra Exact routing APIs differ slightly by driver language.
Run these examples only in a disposable learning database. Predict the number of rows and graph elements before running a query, then compare your prediction with the result. A query that executes successfully can still express the wrong identity or produce the wrong count.
A customer import contains a stable external identifier and a display name that can change. Merging the complete pair treats a changed name as a different pattern. Instead, enforce uniqueness for the stable identifier, merge on that identifier, and update the name separately. A uniqueness constraint also protects the identity rule when concurrent writers arrive. MERGE by itself is not a substitute for a schema constraint that must hold across transactions.
CREATE CONSTRAINT customer_id IF NOT EXISTS
FOR (c:Customer) REQUIRE c.id IS UNIQUE;
MERGE (c:Customer {id: $customerId})
SET c.name = $displayName
RETURN c.id, c.name;
Run the write twice with the same identifier and different names. Expect one customer with the updated name. Then consider a missing identifier: validate the input before writing rather than replacing missing identifiers with a shared placeholder such as “unknown.” Such a placeholder would incorrectly combine unrelated people. Decide separately whether a missing display name should preserve, remove, or replace the old value; that is an application rule, not something MERGE can infer.
Suppose customers and products already exist. Match each endpoint using its stable identity before merging a PURCHASED relationship. If either endpoint is absent, the MATCH produces no row and no relationship is written. Check the returned result so a missing product is not silently reported as a completed purchase. If the model permits repeated purchases, a single relationship merged only between the two endpoints loses transaction identity. Represent each order or purchase event explicitly when its date, quantity, and independent lifecycle matter.
MATCH (c:Customer {id: $customerId})
MATCH (p:Product {sku: $sku})
MERGE (c)-[r:INTERESTED_IN]->(p)
RETURN c.id, p.sku, type(r);
This particular example models one interest relationship, not a financial transaction. The model choice determines whether repeated writes should converge to one relationship or record separate events. Explain that choice before deciding whether CREATE or MERGE is appropriate.
A customer has three orders, and each order has two items. Matching the entire customer-order-item path yields six rows. Counting the customer variable counts six non-null occurrences, not one distinct person. Counting distinct customers answers a different question from counting orders or items. Write down the intended grain of the result first: one row per customer, per order, or per item.
WITH can aggregate at one grain before the next part of the query. OPTIONAL MATCH can preserve customers with no matching order, but predicate placement and later filters still matter. Test an empty customer, a customer with one order, and a customer with multiple orders. These small counterexamples reveal errors more clearly than checking only a customer whose data happens to fit the query.
For a CSV import, establish constraints and validate identifiers before loading a large file. Convert text fields to the intended types explicitly and decide how rejected rows will be reported. Import nodes before relationships when the relationship step expects existing endpoints. A batch commit limits the size of a transaction, but a failure in a later batch does not erase earlier committed batches. Design a restart strategy using stable keys and deliberate updates.
Use driver parameters for values instead of concatenating user input into query text. Managed transaction functions can be retried for appropriate transient failures, so keep external side effects such as sending email outside a retried callback. A successful database transaction and a successful external notification are different events. If the workflow requires reliable notification, persist an event with the business write and process it with duplicate handling.
To test your understanding, explain why uniqueness constraints, MERGE, parameterization, and retry-safe callbacks solve four different problems. None alone guarantees correct business behavior. A useful review states the identity rule, expected cardinality, transaction boundary, and observable failure result for each write.
Technical references: Cypher MERGE and Neo4j driver transactions.
Eight short labs. Write down what you saw, not only that the command exited zero.
Create two :Person nodes and a directed :KNOWS relationship with a since property.
What to verify: MATCH finds the edge in the stored direction and an undirected pattern finds it either way.
MERGE a person by email twice with ON CREATE SET created and a shared SET seen.
What to verify: created is set once; seen updates on both runs; node count stays one.
Create a node with relationships, try DELETE, then DETACH DELETE.
What to verify: plain DELETE fails while relationships remain; DETACH DELETE removes both.
Run MATCH (a:Person), (b:Movie) RETURN count(*) on a small graph with both labels.
What to verify: the count equals |Person| × |Movie| when the patterns are disconnected.
Model a movie rating as a :RATED relationship with score, then query average score per movie.
What to verify: scores live on relationships and aggregate without copying onto Movie nodes.
Import a people CSV with MERGE, then a friendships CSV that MATCH endpoints and MERGE :KNOWS.
What to verify: missing endpoint rows are skipped or logged; re-running does not duplicate people.
Import a larger CSV with CALL IN TRANSACTIONS in an implicit transaction (:auto in Neo4j Browser).
What to verify: commits occur in chunks and memory stays stable versus one huge transaction.
From an official driver, open a session and run a parameterized MERGE inside a write transaction function.
What to verify: the parameter appears in the query API (not concatenated), and a follow-up read returns the node.
These notes follow Neo4j Certified Professional and the five official tested areas. Official topic percentages are unpublished on the GraphAcademy pages reviewed for this path; this site uses equal 20% editorial weights. This is not Neo4j Graph Data Science Certification and not Neo4j & Generative AI Certification.
MERGE matches an existing pattern or creates it if it is missing. ON CREATE and ON MATCH control property side effects when the pattern is new versus when it already exists.
DELETE removes a node only when it has no relationships left. DETACH DELETE removes the node’s relationships first, then the node.
Huge single transactions can exhaust memory and hold locks too long. CALL IN TRANSACTIONS commits in chunks and requires an implicit transaction (:auto in Neo4j Browser).
The overview, core notes, flashcards, and practice exams are all published.
Exam format, the five study groups, and a lab plan.
Reference notes for the property graph model through driver patterns.
40 recall cards in five decks across the study groups.
200 original questions across the five study groups.
These notes follow the Neo4j Certified Professional page, the GraphAcademy certifications catalog, and Neo4j documentation for Cypher and drivers. Confirm details on GraphAcademy before you sit.
Compare document database development with property-graph modeling and Cypher.
Relational administration basics. Passing either exam does not award the other.
A Google Cloud database exam. Passing either exam does not award the other.
Oracle MySQL Implementation Associate (1Z0-922). Passing either exam does not award the other.
Certicab provides general informational, educational, and convenience resources. Learning materials can contain errors or become outdated. Check the current exam guide and official documentation before relying on a technical recommendation. Practice only in environments you own or are authorized to use, and do not share credentials or confidential exam material. Study resources are independent and do not guarantee exam success or imply certification-provider endorsement. Neo4j, Cypher, GraphAcademy, and related marks are trademarks of Neo4j, Inc. or its affiliates. Other names may be trademarks of their respective owners. Certicab is not affiliated with, endorsed by, or sponsored by Neo4j, Inc.