Questions tagged [neo4j-driver]

85 questions
0
votes
1 answer

Neo4j Python Driver: Pass nodes as parameter to DB

i want create a new edge between two nodes using the python driver for neo4j. def cypher_orchestration(tx, start_identifier: str, end_identifier:str, edge_type: str): start_node = node_match(tx, start_identifier).single() end_node =…
ottonormal
  • 104
  • 7
0
votes
1 answer

stop neo4j from racing to execute command

In my following block of code, sometime a DataFrame is created, sometime it is not. It seems like the issue is due to the fact that neo4j is racing to execute the command. I have tried to split the run commands into multiple session like the code…
le Minh Nguyen
  • 241
  • 1
  • 10
0
votes
2 answers

Neo4j node driver - Connection refused. What am I doing wrong?

I have this simple node server (based on the documentation provided here - https://www.npmjs.com/package/neo4j-driver?activeTab=readme const neo4j = require('neo4j-driver'); const driver = neo4j.driver('neo4j://localhost', neo4j.auth.basic('admin',…
JMS
  • 1
  • 1
0
votes
0 answers

Neo4j.Driver code fails in .net 6 console application but works in forms

I am trying to call this GetNotificationsCount() function from both .Net 6 Forms application and a console application. public async Task GetNotificationsCount() { var query = @"Match (p:Notification) RETURN count(p) as…
Kiran
  • 2,997
  • 6
  • 31
  • 62
0
votes
0 answers

node neo4j-driver dosen't allow proxy setting when neo4j-desktop does

I would like to connect to neo4j instance hosted in aws through my node server running in local. I can connect to it using neo4j desktop using proxy settings. I couldent find similar settings in driver though... Am i missing something? Tried setting…
0
votes
1 answer

Neo4J multiple unwinds unexpected behavior

I am trying to execute the following Neo4J query. CREATE (c:Content) WITH c UNWIND $resources as resource MATCH (p:Person {userId: resource["userId"]}) CREATE (r:Resource) CREATE (p)-[:CREATES]->(r) CREATE (c)-[:CONTAINS]->(r) WITH…
Emir Arditi
  • 107
  • 9
0
votes
1 answer

C# Neo4j Driver read records from DB parse IResultCursor

I'm working with Neo4j Driver and trying to read and write from the DB locally. Writing to the DB works with: try { List people = CollectPeopleData(); _driver = GraphDatabase.Driver(uri, AuthTokens.Basic(userName, password)); …
Yafim Simanovsky
  • 531
  • 7
  • 26
0
votes
1 answer

Neo4j-driver in Docker container fails to connect to Neo4j

I have Neo4j 4.4.7 running in one Docker container and a node.js app running in another container, loading neo4j-driver version 4.4.7. The app running in a Docker container fails to connect to neo4j, but it succeeds when I run it from the command…
HieroB
  • 3,917
  • 4
  • 17
  • 22
0
votes
1 answer

C# Driver - Session.CloseAsync() not closing the connections effectively

I am using .NET Driver for Neo4j . Environment: .NET 6 Neo4j Server version : 4.3.2 Driver version : Neo4j.Driver 4.4.0 We are using a singleton driver connection with the server using the following code snippet and reusing it across all the…
0
votes
1 answer

Neo4j graph blind search for any node and relationship containing an expression?

I am trying to build a blind search, given an expression/string. Using Python Neo4j driver I am running: from neo4j import GraphDatabase driver = GraphDatabase.driver("neo4j://localhost:7687") def query_engine(tx, query): res = tx.run(query) …
SteveS
  • 3,789
  • 5
  • 30
  • 64
0
votes
2 answers

Spring Data Neo4j Expected a result with a single record, but this result contains at least one more. Ensure your query returns only one record

I develop an event meeting application using Spring and Neo4j database. This is my model: Member can Create Event and other member can register and check in event when member who is organizer has start check in event. This is my entities in java…
wavemoroc
  • 11
  • 1
  • 4
0
votes
1 answer

Nested FOREACH on array only executes on first array value

I am writing a function to seed my database data. The first thing that I do is clearing everything from the database: export const clearDb = async () => { const deleteQuery = ` MATCH (n) DETACH DELETE n `; await…
Miha Šušteršič
  • 9,742
  • 25
  • 92
  • 163
0
votes
1 answer

Neo4j test container: Database name parameter for selecting database is not supported in Bolt Protocol Version 3.0

I'm using the Neo4j OGM and currently creating a session factory like this. Configuration config = new Configuration.Builder() .uri(uri) .credentials(username, password) .database(db) …
Freid001
  • 2,580
  • 3
  • 29
  • 60
0
votes
1 answer

neo4j query to get a specific formated response

I am having a node network in the neo4j database which includes multilevel nodes something like, parent -> child -> sub child -> ...and so on Now what I need is I need to write a query that will give me the response in the below format. nodes = [ { …
Parth
  • 31
  • 7
0
votes
1 answer

How to query to get n level depth nodes in neo4j

I want to write a query that will fetch the ciphers(nodes) along with its child nodes to the n-level. e.g. if any child is having 1 child node and that child node is also having a sub child and that sub child node is also having a sub child node…
Parth
  • 31
  • 7