Questions tagged [neo4j-driver]
85 questions
7
votes
2 answers
Unable to connect to neo4j from nodejs using neo4j driver
I am using neo4j-driver to connect to neo4j via nodejs but I am facing an issue.
It gives the error failed to connect to server even when the database is up and running and can be accessed via neo4j browser.
Neo4jError: Failed to connect to server.…

Atharva Thorve
- 83
- 1
- 8
4
votes
2 answers
Neo4j Docker Connection failure
I am facing the neo4j connection issue while trying the run the neo4j code; the same working fine outside docker but failing to establish the connection with neo4j database while running inside docker.
Error message:
Traceback (most recent call…

Jack Daniel
- 2,527
- 3
- 31
- 52
4
votes
2 answers
How to get the execution time of a cypher query from python?
I am trying to compare get the execution time of a Cypher query from python, i.e. the time required to compute on the neo4j-server (not including the time required output the result). Right now I am using the following code:
from neo4j.v1 import…

J. Gambolputty
- 53
- 6
3
votes
1 answer
Getting node by id and parameters with Neo4j-Driver for nodejs
I'm trying to return a specific node with the id (using neo4j-driver package within my nodejs server). I have the id of the node I'm searching for. So I used the parameters in the run method as showed bellow but I'm not getting any nodes.…

Nelands
- 33
- 3
3
votes
2 answers
Neo4j: explicit pessimistic locking via Java API or Cypher
Is there a way to manually acquire write lock on a certain set of nodes via Neo4J Java API or Cypher?
There are examples in documentation, but only for embedded Neo4j version. Standard Java Transaction interface does not contain such methods:…

silent-box
- 1,649
- 3
- 21
- 40
2
votes
1 answer
Formatting multiple query returns as a JSON object
I am using JavaScript and neo4j-driver to save a node and some relations to my graph. Everything works as expected, but I would like to read the results of my write and output it in a specific format afterwards, which I am having trouble with. For…

Miha Šušteršič
- 9,742
- 25
- 92
- 163
2
votes
2 answers
update multiple related nodes simultaneously in neo4j with java
I want to copy multiple nodes and then delete the old ones simultaneously. I wrote a multithread java application for this purpose.
My cypher query is as below:
String cypher= "MATCH (a:Person {surname:\""+ Thread.currentThread().getName()+"\"})
…

zahra.dgh
- 123
- 9
2
votes
0 answers
Using Neo4J Java driver 4.0.2 with futures generates errors: NOT PART OF CHAIN, DynamicRecord not in use
I am upgrading a Java project from Java 8 (1.8.0_222) + Neo4J driver version 1.3.1 to Java 11.0.2 + Neo4J driver version 4.0.2. When making the necessary changes, I encountered an issue that I didn’t have before.
I’m using futures to compute score…

Maria Calinoiu
- 21
- 2
2
votes
0 answers
Neo4j - Neo4jError: Connection was closed by server
I've created a google cloud VM instance with neo4j on it, by following this instructions:
https://neo4j.com/docs/operations-manual/current/cloud-deployments/neo4j-gcp/single-instance-vm/
The browser Db looks fine: I can view and manipulate from the…

Itay Tur
- 683
- 1
- 15
- 40
2
votes
1 answer
Neo4j Driver C# Unwind a list of objects
I'm looking how to unwind a list of objects (in memory) into Neo4j 4.0. Below is what I had previously using Neo4jClient nuget but I'm having to switch to Neo4j.Driver nuget instead.
Neo4jClient (old)
graphClient.Cypher
.Unwind(towns, "tp")
…

Liam
- 439
- 1
- 4
- 26
2
votes
1 answer
Why is the Neo4j Bolt Driver inconsistent between shell and IDE?
I see a strange behavior with the neo4j-bolt-driver. When I use Pycharm to run my code it works perfectly well and for a single query to neo4j I get the below response:
type: neo4j.node # I pulled out the type of the element.

iam.Carrot
- 4,976
- 2
- 24
- 71
1
vote
0 answers
Weird problem when using neo4j-driver together with Stencil
So, I recently tried to use the TS neo4j-driver (neo4j-driver), which of course works as supposed inside a TS app.
However, when I try to use neo4j-driver in combination with Stencil, I get a compiler error from the stencil compiler (Node Polyfills…

lightxx
- 1,037
- 2
- 11
- 29
1
vote
1 answer
neo4j query result changed base on return node and properties
I have a query with 2 different return nodes. My question is why when I return m2 node, result will change and when remove m2 node from return statement, result will change too. result dcount change by removing or adding m2. my question is…

Ethirion
- 177
- 1
- 2
- 10
1
vote
1 answer
Cypher returning duplicate results when relationship is referenced
I have a cypher query that returns list of users that are recommended to a user to follow, but am getting duplicate results when the cypher is executed.
Here is the cypher query:
MATCH (user:User { id: $userId })
MATCH…

Emmanuel
- 47
- 2
- 6
1
vote
0 answers
Why does neo4j convert my number to Double with point Neo4j
I am using neo4j-driver inside node js and so far it worked great! But now I have a Date Stamp, which looks 1634717983 when I try to create a node with date property in neo4j it converts the number to double which looks Double(1.634718e+06). Here…

Armen Sanoyan
- 1,898
- 2
- 19
- 32