r/Neo4j • • Jun 16 '26

SQL Dev Tries Graph Database for the First Time 🤯 | Neo4j | Graph RAG

Thumbnail
youtube.com
0 Upvotes

I’ve been writing SQL for years, and I’ve always treated graph databases as just another buzzword. But I recently needed to build some tutorials and decided to finally sit down and map out the exact same schema (Users, Orders, Products, Reviews, Follows) in both PostgreSQL and Neo4j to see how they actually compare.

The core mental shift I had to make:

  • SQL: Which rows match, and how do I join them together via IDs?

  • Cypher (Graph): What pattern matches, and how do I walk the path?

Translating standard queries (Select, Where, Group By) into Cypher was surprisingly easy. But then I hit the scenarios where Cypher completely destroyed SQL.

Here is where SQL became a headache, but Graph felt like a cheat code:

1. Multi-Hop Joins (Many-to-Many) In SQL, trying to get "Which users ordered which products?" means joining Users → Orders → Order_Items → Products. It gets messy fast. In Cypher, it’s just mapping the relationship: (User)-[:PLACED]->(Order)-[:CONTAINS]->(Product). You save so many lines of code and the logic reads exactly like English.

2. Variable Length Paths ("Friends of Friends of Friends") If you want to find followers of followers of followers of "Alice" up to 3 hops in SQL... good luck. You're looking at complex CTEs, recursive queries, or massive hardcoded UNIONs. In Cypher, it's literally just a number parameter: (User {name: 'Alice'})-[:FOLLOWS*1..3]->(OtherUser). It handles the entire traversal instantly.

3. Path Extraction (Are two random things connected?) Finding out how two specific nodes are connected (e.g., User A and User 😎 is a massive pain in tabular data. In a graph db, it's an out-of-the-box function where it traces the shortest path linking them.

Takeaway: SQL is still king for standard tabular data, but if you are dealing with highly interconnected data (recommendation engines, social networks, fraud detection), Graph databases are genuinely game-changing.

I actually recorded my entire side-by-side breakdown of Postgres vs Neo4j, running the exact same queries in both terminals to see how the syntax compares. If you're a SQL dev wanting to learn Graph, you can check out the full 18-minute breakdown in the above video.


r/Neo4j • • Jan 01 '21

How can multiple people work on the same project in Neo4j?

0 Upvotes

Recently I started working in Neo4j on a project that requires simultaneous work with a single database of several people. I didn't find an answer in the instructions. That's why I'm asking you for help. Tell me how to implement this. Thanks.


r/Neo4j • • May 26 '21

Please help me with this problem

0 Upvotes

r/Neo4j • • Oct 03 '20

MATCH (Cap63d:Person:Coder{interests:['Neo4j', 'Java', 'Graphs', 'Bitcoin', 'Cypher', 'Auth0'}) -[:LOOKING_FOR{aspect:'seriously'}] -> (tribe:Person) WHERE (Cap63d.interests count tribe.interests) >= 1 RETURN tribe

0 Upvotes

r/Neo4j • • Aug 04 '24

error in neo4j fix plz

0 Upvotes

c:\python27\python import_all.py --neo4j_username=neo4j --neo4j_password=12345678
Traceback (most recent call last):
  File "import_all.py", line 209, in <module>
create_schema(graph)
  File "import_all.py", line 143, in create_schema
graph.cypher.execute("CREATE CONSTRAINT ON (a:Airport) ASSERT a.id IS UNIQUE;")
  File "c:\python27\lib\site-packages\py2neo\core.py", line 661, in cypher
metadata = self.resource.metadata
  File "c:\python27\lib\site-packages\py2neo\core.py", line 213, in metadata
self.get()
  File "c:\python27\lib\site-packages\py2neo\core.py", line 267, in get
raise_from(self.error_class(message, **content), error)
  File "c:\python27\lib\site-packages\py2neo\util.py", line 235, in raise_from
raise exception
py2neo.error.GraphError: HTTP GET returned response 404


r/Neo4j • • Mar 25 '22

https://www.youtube.com/watch?v=TO00ELu_uJI

0 Upvotes

You're invited to learn about graph technology with Neo4j Under The Hood. Watch the series here!


r/Neo4j • • Apr 09 '21

Can someone please help me out here?

Thumbnail
stackoverflow.com
0 Upvotes

r/Neo4j • • Dec 05 '25

NornicDB - ANTLR head to head parser comparison - MIT License

0 Upvotes

FYI i have a branch and PR open for people to play with to use ANTLR parsing as an optional mode in case people are squamish over new parsers. mine is hardened against attacks as well with the same tests.

https://github.com/orneryd/Mimir/pull/18

TLDR; mine is significant faster while maybe not producing an AST i can produce an AST in the background and cache it for other purposes with the integrated LLM


r/Neo4j • • Jun 10 '26

A pre-execution gate for LLM-generated Cypher queries

0 Upvotes

If you run LLM agents against Neo4j, some fraction of the generated Cypher is structurally broken. It crashes at the database, wastes compute, and the error message that comes back is not designed for an agent to act on. CYGNET sits between the agent and the database and catches these failures before they execute. It validates the query against the graph schema and includes execution against a minimal mirror graph, all at a low latency. When a query fails, the gate returns a structured error with suggestions and enough context for an LLM corrector to fix it in a retry loop.

On a nine-schema corpus the gate catches 100% of parse errors, 100% of constraint violations, and 100% of schema-reference errors in path queries, with zero false positives. A corrector achieves 81% to 95% repair success across five models. On CypherBench (2348 questions, ACL 2025) the pipeline never degrades generation accuracy on any model tested. One finding that might interest the research side is that property sibling-swaps where the wrong property name is still valid in the schema are undetectable by structural validation, which marks a clean boundary for where semantic validation needs to take over.

Paper: https://arxiv.org/pdf/2606.04645

Code: https://github.com/softmatsg/thulge-cygnet-rel


r/Neo4j • • Dec 08 '25

NornicDB - MacOS pkg - Metal support - MIT license

Thumbnail reddit.com
0 Upvotes

r/Neo4j • • Apr 25 '25

Node lookup by property base performance is so bad

1 Upvotes

Hi,

I tried to play with Neo4J on the Reactome biomedical knowledge graph and I measured the latency for just retrieving a single node given its name property as a string. Just the base performance without using any index. I used the REST API interface of Neo4J using curl, on a fairly recent dedicated server running Linux. Using an SSD, quite typical, almost nothing going on at the same time on that machine.

MATCH (n {displayName: "APOE-4 [extracellular entity]"}) RETURN COUNT(n)

And it returned the one single node I was targeting in 1.533s !! Like wtf?! I am quite sure that in 2025 I can write a half baked implementation of a property graph in C++ and search for properties sequentially by doing a dumb for loop over the entire graph and be substantially faster than this!

When I added manually a text index on the displayName property suddenly this was much more acceptable, as I got the result in about 25ms. But still, why can't we have a basic decent performance by default, if not excellent but that's ok, without any manual index? 50 years of database research and computer science and somehow this is where we are 😂


r/Neo4j • • Oct 03 '16

Benchmark: PostgreSQL, MongoDB, Neo4j, OrientDB and ArangoDB

Thumbnail
arangodb.com
1 Upvotes

r/Neo4j • • Apr 01 '16

Announcing Our Newest Release: Neo 4 Java

Thumbnail
neo4j.com
1 Upvotes

r/Neo4j • • Jul 24 '24

GraphDBs Pitfalls and Why We Switched to Postgres

Thumbnail
medium.com
4 Upvotes

r/Neo4j • • Nov 29 '25

"Genesis Mission", Know it in Graph Database (Neo4j)

2 Upvotes

The very recent released one - The Genesis Mission at Nov. 24th 2025 - from US White House as one executive order, is one must-read document which help you understand what's the standing point on AI from US government.

Here https://www.linkedin.com/pulse/genesis-mission-know-graph-database-xiaoqi-zhao-fbhxe I've modeling this "mission" article into Neo4j graph database, and practice LOAD CSV for data importing.

Feel free to check that with flexible Cypher querying.

Enjoy.


r/Neo4j • • Apr 21 '24

ORDER BY

Thumbnail
gallery
2 Upvotes

New here and I am trying to return a set of user ID in an employee data base. I can return the results I want but I cannot order them the way I want. The employee ID is eid: ‘E01’ and goes up to ‘E21’. When I return the results ‘E01’ is in the middle for some reason and E21 is at the top of results. If I ORDER BY DESC then it goes E21 - E01 at the bottom. Screen shots below, I’m losing it, any advice greatly appreciated. This is not a legit database, it’s just for practice so names are not real.


r/Neo4j • • Jul 31 '22

Anyone know how to load a .cypher file into a nodejs ts? My workflow is much better if I can work this way, instead of wrap them or just write them out as strings. Seems should be easy, but haven’t been able.

2 Upvotes

r/Neo4j • • Dec 16 '20

Help needed urgently

2 Upvotes

Hi I realise that this seems desperate but I am doing a project in uni that requires using the spring mvc to display on a webpage a neo4j database of very specific types of data. This is a group project and I was in Charge of the database and the person in charge of spring really messed it up and it’s due in about 24 hours so I have less than that time to learn spring/maven and fix it.

If anyone could please please help me I will send you a link to the GitHub of it


r/Neo4j • • Nov 22 '21

Graph algorithms for Data Science MEAP

2 Upvotes

Hey guys,

I'm writing about about graph algorithms and machine learning workflows using Neo4j. If you want to find some examples of what you might find the book you can check out my medium blog at: https://bratanic-tomaz.medium.com/

The book is available in MEAP state (Manning Early Access Program) and there are 4 out of 10 chapters written so far. The full book is expected to be published in the middle of 2022. The book was made public today, so to celebrate this occasion, I'm offering you a 50% discount code if you want to get an early bird price for the book.

Discount code: mlbratanic

Link to the book: http://mng.bz/zQjZ

Thanks!


r/Neo4j • • Dec 10 '25

NornicDB - MacOs native graph-rag memory system for all your LLM agents to share.

Thumbnail gallery
2 Upvotes

r/Neo4j • • Sep 15 '26

Workshop, Sep 19: build explainable AI apps with Neo4j, GraphRAG, Cypher and LLM Agents

2 Upvotes

There's a hands-on workshop on September 19 for anyone working with Neo4j who wants to see it applied to a real GraphRAG use case, not just graph modeling in isolation.

You build:

  • A knowledge graph in Neo4j that becomes your single source of truth for an agentic RAG system

  • Agentic retrieval combining vector search, keyword search, and graph navigation

  • Multi-step, verified entity and relationship extraction (not one risky single-shot pass)

  • Text-to-Cypher for natural language graph querying

  • Explainable, source-traceable answers with evaluation built in

Runs on real financial filings and news data, working through a complete financial advisor use case rather than a toy example.

Led by Dr. Alessandro Negro, Chief Scientist at GraphAware, bestselling author of graph-powered machine learning and knowledge graph books.

Link if you want to check it out

Happy to answer questions on the Cypher/graph modeling side specifically.


r/Neo4j • • Jul 26 '26

As primary database?

6 Upvotes

I am building a Java application that will need an embedded database, vector store and has many connections.

Postgres can not be embedded, h2 can be embedded but doesn’t support embedding.

In the Java world I just see nosql db actually neo4j and arcadedb they are both very active.

Arcadedb doesn’t have a descent ORM. Neo4j has a better documentation and better springboot support.

My questions:

  1. Anyone here using neo4j as primary database?

  2. Is it still a secondary DB?

  3. What is your experience using Neo4J ?

Thanks in advance


r/Neo4j • • Oct 26 '20

I need to understand the basic system design on how graph dB, ie , neo4j fits into building a app.

3 Upvotes

Hi team,

We are looking to create an full stack application . This is a supply chain management application. Like if you enter a part number , it will show you where this part is used in all products , where this part is manufactured, etc.

We need to build a custom front end and would be creating our own Graph Viz . Is neo4j good fit as a database for this or would any cache based database work ?

We will use Open source Viz tools for calling APIs to graph dB to populate the Viz in webpage.So we can't use neo4J bloom as this can't be integrated into the front end.

We only have a .net resource for webpage development. And we are looking for any resources that would help.

Thanks