TutorialsPatternsField notes

Notes from the graph & GenAI frontier.

Tutorials, patterns and field notes on building GraphRAG systems, knowledge graphs and LLM agents on Neo4j — written by the people who build them.

20 posts · 9 topics · something new every week

Browse Posts

Find your next read

20 posts
cypher
Cypher

Deleting Graph Data Safely in Cypher: Lessons from Building an Agent Workshop

Why MATCH (n) DELETE n breaks down in connected and high-volume graphs, and how to delete graph data safely in Aura.

Alfred OtiAlfred OtiNov 23, 2026 — 5 min read
Cypher

The DIFFERENT RELATIONSHIPS Match Mode in Cypher

By default, a Cypher pattern follows each relationship only once, but can reach the same node many times. See how WHERE and ACYCLIC remove repeated nodes.

Adam CowleyAdam CowleyNov 16, 2026 — 3 min read
Cypher

Relationship Uniqueness in Cypher, and When You Need WHERE NOT

Where to WHERE NOT and where to not WHERE NOT. Understand how Cypher follows relationships and when you need to exclude nodes from the result.

Adam CowleyAdam CowleyNov 13, 2026 — 5 min read
Cypher

Write your first Cypher query without installing anything

Write your first Cypher queries in the browser on Relate, from finding an actor to creating a node, with nothing to install.

Adam CowleyAdam CowleyNov 12, 2026 — 3 min read
GenAI

Give Claude Code a memory with Relate

Save the people, objects, locations and events from a Claude Code conversation to a Relate graph as it happens, with a skill, a hook and the Relate command line.

Adam CowleyAdam CowleyNov 12, 2026 — 4 min read
Cypher

How to load Parquet files into Relate

Convert Parquet files to CSV with DuckDB, then load them into a Relate graph with LOAD CSV and typed properties from the command line.

Adam CowleyAdam CowleyNov 12, 2026 — 4 min read
Cypher

Three ways to run Relate, the embedded Cypher database

Install Relate and run the same Cypher from the command line, embedded in an application and from an agent.

Adam CowleyAdam CowleyNov 12, 2026 — 6 min read
Cypher

Using UUID properties in a Neo4j graph type

Neo4j 2026.08 added a UUID type. Declare it in a graph type, generate values with uuid(), and let the database reject anything else.

Adam CowleyAdam CowleyNov 2, 2026 — 3 min read
Cypher

How Many Connected Four-Letter Words Are There?

I loaded 7,186 four-letter words into Neo4j, linked every pair one letter apart, and used SHORTEST to solve word ladders.

Martin O'HanlonMartin O'HanlonOct 9, 2026 — 6 min read
Cypher

Setting and checking property types in Neo4j

Neo4j property types are whatever the last write said they were. Type predicates and constraints fix that - once you know the null gotcha.

Adam CowleyAdam CowleyOct 1, 2026 — 5 min read
Aura

From Neo4j Graph to Interactive Hive Plot: Modeling Graph Data for d3.js

The four modeling decisions behind an interactive d3.js hive plot of The Odyssey.

Kemi Elizabeth OjogbedeKemi Elizabeth OjogbedeSep 4, 2026 — 10 min read

Traversing Relationships in the 2026 World Cup

Traverse the full 2026 World Cup in Neo4j to build group tables, a golden-boot ranking, and the champions' path, using multi-hop Cypher, WITH pipelines, and aggregation.

Alfred OtiAlfred OtiAug 26, 2026 — 10 min read