Questions tagged [neo4j-driver]
85 questions
0
votes
2 answers
How to remotely access an neo4j community container running on azure with python(neo4j module)?
There is a neo4j community version container running on the azure, and i was provided by the dns
http://[remote-address]:7687
if i do curl with proxy(px from github)(office recommended also), i able to get, bolt_routing, transaction, bolt_direct,…

KLAS R
- 52
- 7
0
votes
0 answers
JS Neo4jError: Cannot run query in this transaction, because it has been rolled back either because of an error or explicit termination
I fire few hundreds of below mentioned query concurrently (tried synchronously also) from JS neo4j-driver 4.4.1. Few of the queries, sometimes throws the following error in nodejs. But when my retry logic retries after sometime, it…

solar
- 31
- 3
0
votes
1 answer
Neo4j - passing string parameters through JavaScript driver doesn't work
I am during the process of rewriting queries with already injected values to passing query and params object.
Queries which use ints work fine (I need to use neo4j's int translation):
...
ID(node)=$nodeId
...
LIMIT $fetchLimit
import { int } from…

ablaszkiewicz1
- 855
- 1
- 10
- 26
0
votes
1 answer
py2neo recursive matching
I'm playing with py2neo and now the I'm looking for the most convenient manner to find all children of a specific node using recursion.
What I'm looking for is the following idea:
MATCH (:LabelA {id:"C"})-[:to*]->(m:LabelA) RETURN n;
This is what…

Erik
- 153
- 8
0
votes
1 answer
Neo4j transaction with array of queries with js-neo4j-driver
I want to pass an n-number of cypher-queries to a neo4j-transaction and I am thinking about a good approach.
At the moment I have a working approach that takes the array-item or if it is not available a dummy-query. (Code below)
I believe this is…

Peter
- 323
- 4
- 15
0
votes
1 answer
Spring boot command line application doesn't terminate with neo4j driver
I've added Neo4j connectivity to a simple Spring Boot command line application — it implements CommandLineRunner.
I've almost followed the examples in Neo4j driver manual, but my application doesn't terminate after main() finishes.
The only…

watery
- 5,026
- 9
- 52
- 92
0
votes
0 answers
Kafka Neo4j Connect - using bolt+routing protocol
I'm trying to change the protocol from bolt to bolt+routing in the Kafka Neo4j Connector configuration. However I'm facing the error
"trace":"java.lang.IllegalArgumentException: Invalid address format bolt+routing\n\tat…

Tin Nguyen
- 399
- 1
- 6
- 16
0
votes
0 answers
Ionic to signed apk with neo4j driver
I'm actually working on a Ionic projet and i'm using neo4j driver to use my neo4j database.
And i wanted to know if the connection with my database won't stop working after creating my apk
Thanks :)
0
votes
1 answer
How to make integration test with neo4j spring data rest and Neo4jRepository using Spock
Here is the test I am trying to run using test containers
@Testcontainers
class UserIntTest extends Specification {
@Autowired
private UserDao userDao
@Shared
private static Neo4jContainer neo4jContainer = new Neo4jContainer()
…

Razine Ahmed Bensari
- 31
- 1
- 5
0
votes
1 answer
How to get the result using neo4j-driver functions as same as the result from evaluate() function in py2neo?
def get_nlg(graph_query):
driver = Graph("neo4j://localhost:7687", auth=("neo4j","password"))
graph_response = graph.evaluate(graph_query)
For the above code, I replaced with the driver code as below, but its not working, what is the…
user11282064
0
votes
0 answers
Failed to read from defunct connection (Jupyter notebook, python driver )
I try to import data into a Neo4j VM in Azure.
This code works:
def create_article(tx):
tx.run("CREATE (a:ARTICLE)")
session.read_transaction(create_article)
But this code doesn't work:
def create_node_article(tx, id, title, label):
…

LJRB
- 199
- 2
- 11
0
votes
1 answer
neo4j driver functions equivalent to py2neo functions
def get_nlg(graph_query):
driver = Graph("neo4j://localhost:7687", auth=("neo4j","password"))
graph_response = graph.evaluate(graph_query)
For the above code, I replaced with the driver code as below, but its not working, what is the…
user11282064
0
votes
1 answer
How to create a new DB or connect to existing one
I pulled and run neo4j docker:
sudo docker run -p7474:7474 -p7687:7687 -e NEO4J_AUTH=neo4j/s3cr3t neo4j
From python I can connect to it with:
scheme = "neo4j"
host_name = "localhost"
port = 7687
url =…

Boom
- 1,145
- 18
- 44
0
votes
1 answer
got "Neo.ClientError.Cluster.NotALeader" in node js using neo4j-ha-bolt-driver
I use neo4j-ha-bolt-driver module to connect to neo4j cluster. I connected to neo4j and tried an update query but I got "Neo4jError: No write operations are allowed directly on this database. Writes must pass through the leader. The role of this…

Zeynab Sobhani
- 53
- 1
- 7
0
votes
1 answer
neo4j - declare variables that are available for node creation in FOREACH clause and also for the RETURN clause
I'm working on neo4j graph with the following labels: Store, User, Product
the relationships are: (store)-[:OF]->(user), (product)-[:OF]->(user), (store)-[:SELL]->(product)
when adding or updating a store, products can be added, updated, attached or…

Itay Tur
- 683
- 1
- 15
- 40