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
15
votes
2 answers

Neo4j - Counting Nodes with Labels

I'd like a query that counts how many nodes have each label in the dataset. For instance: LabelA 100 LabelB 200 I can do this for each individual label with something like MATCH (n:LabelA) return count(n); But, I'd like to do it for every…
leadZERO
  • 195
  • 1
  • 1
  • 4
15
votes
1 answer

how to get current time using cypher

lets say for example, I have ten nodes with a name and time property. i have used the timestamp() function but it returns a value, that is the difference between the current time and the 1st of january, 1970 in milliseconds. What i want to know is,…
Kanak
  • 301
  • 2
  • 3
  • 9
15
votes
4 answers

is there a way to get length of a string in Neo4j cypher?

pretty simple question, is there a way to get length of a string in Neo4j cypher? I cannot find any document for that. thanks
Qun Wang
  • 299
  • 1
  • 4
  • 7
15
votes
4 answers

Neo4j 1.9.4 Windows Installer- where did the shell go?

When you install 1.9.4 using the new Windows installer, from where does one launch the Neo4j-Shell (previously found in bin)?
Luanne
  • 19,145
  • 1
  • 39
  • 51
15
votes
3 answers

Returning only simple paths in Neo4j Cypher query

Given a query like the following: START n = node(123) MATCH p = n-[r:LIKES*..3]->x RETURN p; The result paths that I get with the query above contain cycles. How can I return only simple paths? Given this example: How can I avoid paths with…
Marsellus Wallace
  • 17,991
  • 25
  • 90
  • 154
15
votes
3 answers

What are the neo4j naming conventions?

I'm curious about naming conventions in neo4j. I noticed in their examples that relationship names where capitalized, e.g. left-[r:KNOWS]->right Is that the convention? Is neo4j case sensitive in relationship names? Are there other naming…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
15
votes
3 answers

Running Neo4j purely in memory without any persistence

I don't want to persist any data but still want to use Neo4j for it's graph traversal and algorithm capabilities. In an embedded database, I've configured cache_type = strong and after all the writes I set the transaction to failure. But my write…
cprsd
  • 473
  • 4
  • 13
15
votes
5 answers

Simple tutorial for Neo4J and using it with django + python

Is there any simple tutorial for learning Neo4J. I went through its official manual and found very confusing for me since i am from mysql background. I just wanted to learn Neo4J but i am really finding a hard time. Also there is not much books…
fear_matrix
  • 4,912
  • 10
  • 44
  • 65
14
votes
2 answers

hierarchical data in a database: recursive query vs. closure tables vs. graph database

I'm starting on a new project that has some hierarchical data and I'm looking at all the options for storing that in a database at the moment. I am using PostgreSQL, which does allow recursive querying. I also looked into design patterns for…
14
votes
2 answers

Hold entire Neo4j graph database in RAM?

I'm researching graph databases for a work project. Since our data is highly connected, it appears that a graph database would be a good option for us. One of the first graph DB options I've run into is neo4j, and for the most part, I like it.…
teuber789
  • 1,527
  • 16
  • 28
14
votes
1 answer

How can I use group by function in neo4j?

I'm new in neo4j and I don't know how I can use the 'group by' function in cypher. I have something like this: match(c:SEASON)<-[t:during]-(a:PLAYER)-[r:won]->(b:AWARD) return r.year as year, t.team as team that returns the following: year …
manfr27
  • 151
  • 1
  • 1
  • 4
14
votes
5 answers

neo4j return an integer instead of {high: 0, low: 10}

Is there a way to return just an integer through cypher? I am working with neo4j and the javascript driver. However when I do a count() I get {low: 10, high: 0}. I would like to force this to return a low integer instead of the object above. Is this…
Terence Chow
  • 10,755
  • 24
  • 78
  • 141
14
votes
2 answers

Where can I find an overview of the syntax of the Neo4j GRASS language?

Neo4j's browser allows the graphs it shows to be styled using a CSS-like style file in the GRASS language (GRaph Style Sheet). However, I have not been able to find the syntax of this language. Is there any and if so, where can it be found?
equaeghe
  • 1,644
  • 18
  • 37
14
votes
4 answers

There is no procedure with the name `apoc.help` registered for this database instance

I've built and installed the "apoc" procedures according to the github page (The apoc-1.0.0-SNAPSHOT.jar file was copied into the plugins directory after the suerver was stopped, and then I started the server again) but when I try to call any of the…
Babak Tourani
  • 419
  • 2
  • 6
  • 18
14
votes
1 answer

Cypher 'Node Already Exists' issue with MERGE

I am preplexed on why I am getting an issue with this Cypher statment when I have a unique constraint on the address of the location node but am using a merge which should find that if it exists and only return the id for the rest of the statment.…
Wally Kolcz
  • 1,604
  • 3
  • 24
  • 45