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
13
votes
1 answer

Neo4j - Count distinct nodes

I have this kinds of relationships: (:User)<-[:MENTIONS]-(:Tweet)-[:ABOUT]->(:Topic) I would like to count all the users mentioned in the tweets regarding some topic. With the following query match (n:Topic)<--(t:Tweet)-[:MENTIONS]->(u:User) where…
sirdan
  • 1,018
  • 2
  • 13
  • 34
13
votes
2 answers

Neo4j how to model a time-versioned graph

Part of my graph has the following schema: Main part of the graph is the domain, that has some persons linked to it. Person has a unique constraint on the email property, as I also have data from other sources and this fits nicely. A person can be…
Tomaž Bratanič
  • 6,319
  • 2
  • 18
  • 31
13
votes
1 answer

golang and neo4j using golang-neo4j-bolt-driver

I'm trying out the golang-neo4j-bolt-driver package github.com/johnnadratowski/golang-neo4j-bolt-driver I have imported the package and am using the example way of creating a new driver: driver := bolt.NewDriver() i get the following: ./neo.go:5:…
Albert S
  • 2,552
  • 1
  • 22
  • 28
13
votes
2 answers

How to display all nodes on screen in neo4j

I have a almost 5000 nodes of Recipes and 5 nodes of Meal_Types in neo4j database. Right now there is no relationship between them. I am running CQL below: MATCH (n) RETURN n LIMIT 100000 This is running fine, but it is returning node related to…
13
votes
5 answers

Can't MERGE with null values; 'Cannot merge node using null property value' in neo4j

I have a column in a csv that looks like this: I am using this code to test how the splitting of the dates is working: LOAD CSV WITH HEADERS FROM 'file:///..some_csv.csv' AS line WITH SPLIT(line.date_of_birth, '/') AS date_of_birth return…
Monica Heddneck
  • 2,973
  • 10
  • 55
  • 89
13
votes
1 answer

spring-boot upgrade from 1.3.2 to 1.3.3: logback issue

We've hit an issue when upgrading from spring-boot 1.3.2 to the recently released 1.3.3. Our application has been making use of the following dependencies, each the latest, without issue: 2.3.2
13
votes
1 answer

Neo4j - convert set of node's attributes from string to int

If I have a set of nodes with the same attributes in Neo4j, is there a way to convert the type of a certain attribute from string to int (or vice versa) for all of those nodes?
Sergei Wallace
  • 1,129
  • 4
  • 16
  • 26
13
votes
2 answers

Neo4j vs. ArangoDB when modeling a social network

I want to build a social network. (E.g. Persons have other persons as friends) and I guess a graph database would do the trick better than a classic database. I would like to store attributes on the edges and on the nodes. They can be json, but I do…
Florian Reisinger
  • 2,638
  • 4
  • 23
  • 34
13
votes
3 answers

Using Cypher to return nested, hierarchical JSON from a tree

I'm currently using the example data on console.neo4j.org to write a query that outputs hierarchical JSON. The example data is created with create (Neo:Crew {name:'Neo'}), (Morpheus:Crew {name: 'Morpheus'}), (Trinity:Crew {name: 'Trinity'}),…
user3821415
  • 233
  • 3
  • 10
13
votes
1 answer

Gremlin get all incoming and outgoing vertex, including their edges and directions

I spent a week at Gremlin shell trying to compose one query to get all incoming and outgoing vertexes, including their edges and directions. All i tried…
Dmitry Yudin
  • 1,033
  • 1
  • 10
  • 31
13
votes
2 answers

Cannot log in Neo4j server

On a fresh install of neo4j-community-2.2.4 I get the message "Invalid username or password." when submitting the login form at localhost:7474/browser with the default username neo4j and password neo4j. I did enable…
Stephane
  • 11,836
  • 25
  • 112
  • 175
13
votes
2 answers

Neo4j: Cypher query on property array

I have a domain class which has a property by name "alias" which is an arraylist of strings like below: private List alias; alias contains the following values: {"John Doe","Alex Smith","Greg Walsh"} I'd like to be able to make a query…
codebin
  • 285
  • 1
  • 4
  • 12
13
votes
2 answers

Neo4j Cypher - Excluding relationships by type in cypher query?

Single relationships can be excluded by types using Match (n:Person)-[r]-(m:Person) where type(r)<>"FRIENDS" return n,r,m Is there a way to exclude multilevel relationships with cypher? Match (n:Person)-[r*2..4]-(h:Hobby) where type(r)<>"FRIENDS"…
mayank gupta
  • 201
  • 2
  • 10
13
votes
4 answers

How to work with type hierarchies in Neo4j?

Is there some way to model type hierarchies in Neo4j? If for example I want to build a class hierarchy of cars, I might have a base type of "Car" and then have sub classes that extend that, like "SportCar", etc. I'd like to be able to create…
Paul Fryer
  • 9,268
  • 14
  • 61
  • 93
13
votes
6 answers

How to create unique CONSTRAINT to relationship by neo4j cypher?

How to create unique CONSTRAINT to relationship by neo4j cypher?
Kail
  • 155
  • 1
  • 1
  • 5