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

neo4j performance compared to mysql (how can it be improved?)

This is a follow up to can't reproduce/verify the performance claims in graph databases and neo4j in action books. I have updated the setup and tests, and don't want to change the original question too much. The whole story (including scripts etc)…
Joerg Baach
  • 1,066
  • 8
  • 17
40
votes
5 answers

What's the Cypher script to delete a node by ID?

In SQL: Delete From Person Where ID = 1; In Cypher, what's the script to delete a node by ID? (Edited: ID = Neo4j's internal Node ID)
Rm558
  • 4,621
  • 3
  • 38
  • 43
40
votes
4 answers

neo4j: How do I change the database storage location?

Hi I created a neo4j database with custom java application and tried to change path in configuration file in order to connect to created database. While trying to check the data in webadmin console only node 0 is visible (seems that the database is…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
39
votes
6 answers

GUI tool for viewing Neo4j database

Is there a GUI tool which allows you to look at the contents of the Neo4j database visually.
priya
  • 24,861
  • 26
  • 62
  • 81
38
votes
3 answers

Find Neo4j nodes where the property is not set

Using Cypher, how can I find a node where a property doesn't exist? For example, I have two nodes: A = {foo: true, name: 'A'}, B = { name: 'B'} Now I'd like to find B, selecting it on the basis of not having the foo property set. How can I do…
Andrei R
  • 4,904
  • 5
  • 25
  • 26
37
votes
1 answer

Neo4j - Match by multiple relationship types

I want to match between entities by multiple relationship types. Is it possible to say the following query: match (Yoav:Person{name:"Yoav"})-[:liked & watched & ... ]->(movie:Movie) return movie I need "and" between all the relation types; Yova…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
37
votes
1 answer

Pulling data from Neo4j using PySpark

I have a time series currently stored as a graph (using a time tree structure, similar to this) in a Neo4j server instance, version 2.3.6 (so REST interface only, no Bolt). What I am trying to do is to perform some analytics of these time series in…
ajmazurie
  • 509
  • 4
  • 8
37
votes
10 answers

How to configure user and password for neo4j cluster without REST API

The version I use is neo4j-enterprise-2.2.0-M02 My question is : How can I configure a user (like add a new user, change the password ,etc) in backend or browser, instead of REST API? Can I do it via neo4j-shell? imagine that I am a DBA, it is not…
zxz
  • 1,012
  • 2
  • 11
  • 14
37
votes
2 answers

Neo4j Bidirectional Relationship

Is there a way to create bidirectional relationship in Neo4j using Cypher? I would like the relationship to be bidirectional rather than making two unidirectional relationships in both directions For eg: (A)<-[FRIEND]->(B) Rather…
sgp
  • 1,738
  • 6
  • 17
  • 31
36
votes
1 answer

Check whether a node exists, if not create

I am trying to make a database where every time a node doesn't exist it will create a new one and set a relationship between this node and another. If the node exists, both nodes get a relationship. My problem is that, if I try to connect 2 existing…
Kapotth
  • 393
  • 1
  • 3
  • 8
36
votes
5 answers

How to kill a currently long running query in Neo4j

How can I kill a currently long-running query in Neo4j (without restarting the server)? I know we can globally set a timeout for queries, but sometimes I want to execute heavy queries/creates/updates on the server that could take a while... Thanks.
Gil Stal
  • 3,354
  • 4
  • 29
  • 32
35
votes
6 answers

Forgot Neo4j Server Password

Because this question was never answered, I was hoping someone could help me reset the password to connect to my neo4j password (at localhost:7474). Zachary wrote a post on solving this by someone restarting the service using: sudo service…
NumenorForLife
  • 1,736
  • 8
  • 27
  • 55
35
votes
3 answers

A graph DB vs a Prolog (or miniKanren)

Recently I have been looking into graph databases like Neo4j and into logic programming in Prolog and miniKanren. From what I have learned so far, both allow specifying facts and relations between them, and also querying the resulting system for…
noncom
  • 4,962
  • 3
  • 42
  • 70
35
votes
7 answers

Graph Databases - betting the company on it?

Looking at Neo4j, and the 32 billion relationship limit has me worried (imagine 40 million users who upload 500 photos, have 500 friends, make 500 comments etc and before you know it you are past 32 billion).. So I have some concerns and have to…
35
votes
8 answers

Gremlin remove all Vertex

I know how to remove a vertex by id in Gremlin. But now I'm need to cleanup the database. How do I delete multiple vertices? Deleting 1 v is like this: ver = g.v(1) g.removeVertex(ver) I mean something like SQL TRUNCATE. How do you remove…
Aleksandrenko
  • 2,987
  • 6
  • 28
  • 34