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
26
votes
8 answers

How to delete labels in neo4j?

How to delete labels in neo4j? Actually I deleted all nodes and relationships, then I recreated the movie database and still the labels I created before appeared on the webinterface. I also tried to use a different location for the database and even…
Matthias Baumgart
  • 905
  • 1
  • 9
  • 22
25
votes
1 answer

Find neo4j nodes with more than one incoming relationship

I'm trying to find all the nodes with more than one incoming relationship. Given this data: a-[has]->b a-[has]->c d-[has]->b So, I'm looking for a query that returns 'b', because it has more that one incoming. This query is close. It returns 'a'…
SteveS
  • 536
  • 1
  • 6
  • 10
25
votes
3 answers

What is the difference between triplestores and graph databases?

There are triplestores (semantic databases), and there are general-purpose graph databases. Both are based on the similar concepts of linking one "item" to another via a relationship. Triplestores support RDF and are queried by SPARQL, but such…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
25
votes
4 answers

how do I delete duplicate relationships between two nodes with cypher?

When I run this query: START n1=node(7727), n2=node(7730) MATCH n1-[r:SKILL]->n2 RETURN r it gives me a list of duplicate relationships that I have between the two nodes. what do I add to the cypher query to iterate over the relationship to keep…
priyolahiri
  • 668
  • 1
  • 5
  • 10
25
votes
3 answers

How to paginate query results with cypher?

Is it possible to have cypher query paginated. For instance, a list of products, but I don't want to display/retrieve/cache all the results as i can have a lot of results. I'm looking for something similar to the offset / limit in SQL. Is cypher…
sunix
  • 323
  • 1
  • 3
  • 8
25
votes
3 answers

Neo4j: Step by Step to create an automatic index

I am creating a new Neo4j database. I have a type of node called User and I would like an index on the properties of user Identifier and EmailAddress. How does one go setting up an index when the database is new? I have noticed in the…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
24
votes
2 answers

Time-based data in neo4j

have a question on graph databases, can some one help me please? I'm handling quite a lot of data in mysql about 5M records a day sent by a router like device, access points, wireless bridges. The data is usually health data, gps etc... these are…
opensourcegeek
  • 5,552
  • 7
  • 43
  • 64
24
votes
3 answers

Error occurs when creating a new database under Neo4j 4.0

I'm using Debian 9.9 and the version of Neo4j is 4.0. I'm having problems creating a new database using the neo4j browser. The instruction I followed is this. I have tried the following Cypher command: create database myNewDatabase However, an…
user12949097
  • 423
  • 1
  • 4
  • 10
24
votes
1 answer

Neo4j: label vs. indexed property?

Suppose you're Twitter, and: You have (:User) and (:Tweet) nodes; Tweets can get flagged; and You want to query the list of flagged tweets currently awaiting moderation. You can either add a label for those tweets, e.g. :AwaitingModeration, or add…
Aseem Kishore
  • 10,404
  • 10
  • 51
  • 56
24
votes
1 answer

How Neo4j stores data internally?

My question is from the view of developer (not specifically respect to User) and may be bit messy. I want to know that how the structure of Nodes and Relationships is get stored in database logically. Like, when I say that I have bla bla…
Vincenzo
  • 344
  • 1
  • 5
  • 13
24
votes
1 answer

How to count the number of relationships in Neo4j

I am using Neo4j 2.0 and using the following query to find out the count of number of a particular relationship from a particular node. I have to check the number of relationships named "LIVES" from a particular node PERSON. My query is: match…
poorvank
  • 7,524
  • 19
  • 60
  • 102
24
votes
4 answers

Multiple unrelated queries in Neo4j Cypher?

Does http://localhost:7474/browser/ not support multiple unrelated queries? This code: MATCH (a {cond:'1'}), (b {cond:'x'}) CREATE a-[:rel]->b MATCH (a {cond:'2'}), (b {cond:'y'}) CREATE a-[:rel]->b MATCH (a {cond:'3'}), (b {cond:'z'}) CREATE…
laggingreflex
  • 32,948
  • 35
  • 141
  • 196
24
votes
2 answers

Neo4j: How do I delete a specific relationship with cypher?

Lets say, I have an user: CREATE (n { name: 'Tamil' }) and 2 roles: CREATE (n { name: 'developer' } ) CREATE (n { name: 'tester' } ) Then, I make relationship between the user & each of the 2 roles. CYPHER 1.9 START a = node(*), b = node(*)…
user405398
23
votes
3 answers

How to get all connected nodes in neo4j

I want to get list of all connected nodes starting from node 0 as shown in the diagram
chetan dev
  • 611
  • 2
  • 6
  • 16
23
votes
2 answers

How to hide unwanted relationships between nodes in Neo4j

I'm new in Neo4j and I have a weird requirement. I have some node CREATE (a:node {title:1}) CREATE (b:node {title:2}) CREATE (c:node {title:3}) CREATE (d:node {title:4}) and multiple relationships between them: CREATE…
kishoredbn
  • 2,007
  • 4
  • 28
  • 47