Questions tagged [neo4j]

Neo4j is an open-source graph database (GDB) well suited to connected data. Please mention your exact version of Neo4j when asking questions. You can use it for recommendation engines, fraud detection, graph-based search, network ops/security, and many other user cases. The database is accessed via official drivers in Java, JavaScript, Python and .NET, or community-contributed drivers in PHP, Ruby, R, Golang, Elixir, Swift and more.

Neo4j is a open-source, transactional, high-performance native graph database.

Neo4j stores its data as a graph: Nodes are connected through Relationships, both with arbitrary properties. Neo4j features a graph-centric declarative query language called Cypher. Its drivers support many programming languages. More details in the Online Training and the Neo4j Manual.

Neo4j offers a fully-managed cloud database (Database as a service) called Neo4j AuraDB.

For questions that are not suitable for the Stack Overflow Q&A Format, please reach out on Discord. Neo4j also maintains a public Feedback Board for feature ideas and future development directions.


Useful Links

External Resources


Related Tags

22696 questions
16
votes
5 answers

Creating nodes and relationships at the same time in neo4j

I am trying to build an database in Neo4j with a structure that contains seven different types of nodes, in total around 4-5000 nodes and between them around 40000 relationships. The cypher code i am currently using is that i first create the nodes…
ErikOstergren
  • 161
  • 1
  • 1
  • 4
16
votes
1 answer

Neo4j 2.0 unique constraint error "node already exists" when it does not

I am having a bit of trouble with neo4j unique constraints, where a CREATE cypher statement is failing to execute due to the node already existing. Problem is, it doesn't (exist). Also, this exact process with this exact data worked yesterday. My…
Tasos Bitsios
  • 2,699
  • 1
  • 16
  • 22
16
votes
2 answers

Is there a way to show cypher execution plan?

I've seen a topic (Understanding Neo4j Cypher Profile keyword and execution plan) where profile keyword is mentioned. I couldn't use it in Neo4j 2.0.0RC1 Community. Peter wrote it's not fully implemented. Will it ever be supported? I mean, it…
gruby karol
  • 329
  • 2
  • 11
16
votes
1 answer

What is the fully qualified path of the Neo4j data directory on Ubuntu 12.04?

I can't find the data directory for my Neo4j Enterprise installation. I have looked at the config files and understand that it is in the data/graph.db file. What is the default fully qualified path of the neo4j data directory?
OpenCoderX
  • 6,180
  • 7
  • 34
  • 61
15
votes
3 answers

Lazy/Eager loading/fetching in Neo4j/Spring-Data

I have a simple setup and encountered a puzzling (at least for me) problem: I have three pojos which are related to each other: @NodeEntity public class Unit { @GraphId Long nodeId; @Indexed int type; String…
Niko
  • 6,133
  • 2
  • 37
  • 49
15
votes
2 answers

Is Neo4J a good fit for clojure?

I have found that relational databases are a very good fit for Clojure as the set functions (project/join/union etc) map very nicely to a database schema making Clojure almost a perfect fit for using with databases. I was wondering how Clojure fits…
yazz.com
  • 57,320
  • 66
  • 234
  • 385
15
votes
2 answers

is there any way in Neo4J using CONTAINS to compare case-insensitive string?

Suppose there is a node, Student, that has a property Name. MATCH (s:Student) were s.Name contains "stack" RETURN s.Name the output should be like : stack, Stack, STACK etc
Pravesh Singh
  • 191
  • 2
  • 8
15
votes
2 answers

"The client is unauthorized due to authentication failure"

I just started to learn Neo4j.However, I come across a problem when connecting to Neo4j at the very beginning. As the image shown, it says "The client is unauthorized due to authentication failure." Any solutions?
Erin Li
  • 185
  • 1
  • 1
  • 6
15
votes
1 answer

Is it Necessary to move from neo4j Community Edition to Enterprise Edition and Queries about creating a new database in neo4j

I am doing Research work on Neo4j graph database. My main purpose to use Neo4j is for searching purpose.Till now I am working on the community edition of it, I had read (have a doubt) somewhere it allows around 100 millions of nodes. I had a…
user3359536
15
votes
3 answers

Neo4j Add/update properties if node exists

I want to be able to update/enlarge my Neo4j database by uploading a newer version of that database OR part of that database. Of what I've found I can use MERGE to add new nodes just if they don't already exists. But in that process, how do I in a…
user1806627
  • 150
  • 1
  • 1
  • 6
15
votes
4 answers

Cypher Neo4J - CASE Expression with MERGE

I'm trying to implement the logic in Cypher where, based on a particular condition (CASE Statement), I would create some nodes and relationships; the code is as below MATCH (g:Game)-[:PLAYER]->(u:User)-[r1:AT]->(b1:Block)-[:NEXT]->(b2:Block) WHERE…
deepesh
  • 513
  • 1
  • 7
  • 18
15
votes
1 answer

py2neo 2.0: ERROR:httpstream:! SocketError: timed out

I execute a long running (5 mintues) Cypher query with py2neo 2.0: graph.cypher.run(query) or result = graph.cypher.execute(query) The query fails after ~60 sec with a Socket Error from httpstream: ERROR:httpstream:! SocketError: timed out The same…
Martin Preusse
  • 9,151
  • 12
  • 48
  • 80
15
votes
3 answers

In Neo4J, how to set the label as a parameter in a cypher query from Java?

I have problems with parameter in cypher in Neo4J from Java. I run the the database embedded. The code should be like this (GraphDB.cypher goes directly to the ExecutionEngine) HashMap parameter = new…
Raxa
  • 372
  • 3
  • 7
15
votes
8 answers

How to get a list of node properties with Cypher in Neo4j?

I'm trying to list all of the properties for a set of nodes. Match (n:"Indicator") return properties(n), ID(n) I'm unsure of the syntax and couldn't find the answer in the refcard or docs.
adam
  • 940
  • 5
  • 13
  • 30
15
votes
1 answer

neo4j cypher nested collect

Imagine a photo album schema w/ Users, Albums, and Photos: User -[owns]-> Album -[contains]-> Photo Can I do a nested collect to get Photos nested in Albums, and Albums nested in User? I'd like results similar to: { "users": [ { "name": "roger…
Bob B
  • 4,484
  • 3
  • 24
  • 32