Study guide · Core notes

Neo4j Certified Professional 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.

Reviewed November 20, 2026Five study groupsEqual 20% editorial weights

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.

Property Graph Model

20% editorial. Nodes, relationships, labels, properties, direction.

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.

Relationships

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 versus types

Labels classify nodes (:Person). Relationship types name edges (:KNOWS). Do not conflate the two CREATE forms.

Properties

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.

Cypher Queries

20% editorial. Reading, writing, aggregation, indexes.

MATCH and WHERE

MATCH binds patterns; WHERE filters bindings. Disconnected MATCH patterns (comma-separated) can explode into Cartesian products.

CREATE versus MERGE

CREATE always inserts. MERGE matches or creates. ON CREATE / ON MATCH refine property updates for new versus existing patterns.

DELETE and DETACH DELETE

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, UNWIND, indexes

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.

Graph Data Modeling

20% editorial. Design decisions and anti-patterns.

Relationship versus property

If a fact connects two entities or has edge attributes, prefer a relationship. Simple attributes of one entity stay on that node.

Specific types

Prefer :PURCHASED or :REPORTS_TO over a catch-all :RELATED. Specific types keep MATCH selective and readable.

Intermediate nodes

Reify an association as a node when it has rich structure, lifecycle, or links to other entities (for example threaded comments on a rating).

Anti-patterns

Supernodes that fan out to everything, packed ID lists instead of relationships, and join-table nodes when a typed relationship would suffice.

Importing Data

20% editorial. LOAD CSV and batching.

LOAD CSV

Read rows from an allowed file URL or import directory. WITH HEADERS exposes columns by name. Convert strings with toInteger/toFloat as needed.

Idempotent MERGE

MERGE on business keys so re-runs do not multiply duplicates. Uniqueness constraints catch accidental CREATE collisions.

Batching

CALL { ... } IN TRANSACTIONS commits in chunks and must run in an implicit transaction; use :auto in Neo4j Browser. One giant transaction can exhaust memory.

Order and errors

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.

Application Development

20% editorial. Drivers, Bolt, parameters.

Bolt and drivers

Official drivers speak Bolt. Create one driver per process, open sessions for work, and close the driver on shutdown.

Parameters

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.

Sessions and transactions

Use read/write transaction functions for clear boundaries and transient retries. Multi-statement integrity needs one shared write transaction.

Clusters and bookmarks

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.

Worked cases: identity, cardinality, and safe graph writes

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.

Separate identity from changeable attributes

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.

Bind endpoints before creating a relationship

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.

Count entities, not accidental row multiplication

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.

Make imports restartable and application writes predictable

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.

Verification drills

Eight short labs. Write down what you saw, not only that the command exited zero.

1. Labels and direction

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.

2. MERGE side effects

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.

3. DETACH DELETE

Create a node with relationships, try DELETE, then DETACH DELETE.

What to verify: plain DELETE fails while relationships remain; DETACH DELETE removes both.

4. Cartesian product

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.

5. Relationship versus property

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.

6. LOAD CSV people then edges

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.

7. Batched import

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.

8. Parameterized driver write

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.

Frequently asked questions

Which exam do these notes follow?

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.

What does MERGE do in Cypher?

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.

How is DETACH DELETE different from DELETE?

DELETE removes a node only when it has no relationships left. DETACH DELETE removes the node’s relationships first, then the node.

Why batch LOAD CSV imports?

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).

Continue the Neo4j study path

The overview, core notes, flashcards, and practice exams are all published.

Neo4j hub →
Available

Overview

Exam format, the five study groups, and a lab plan.

Available · You are here

Core Notes

Reference notes for the property graph model through driver patterns.

Available

Practice Exams

200 original questions across the five study groups.

Official exam sources

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.

Apply concepts in the Scenario Workshop →