Hi,
This is myy first time workign with neo4j. I have a huge graph with 500K nodes and I have to use it in a django application. I'm planning to create a neo4j database and then use neomodel for querying.
For creating the database, I have installed neo4j desktop and created a simple database and started it. Then I installed ptyhon neo4j-driver and tried to query the database. Here is a simple code block I'm using -
driver = GraphDatabase.driver(
"bolt://localhost:7687",
auth=basic_auth("neo4j", "neo4j"))
I have inserted only 1 node in the database for testing. Here is the code I'm using for querying -
with driver.session(database="neo4j") as session:
results = session.read_transaction(
lambda tx: tx.run(cypher_query).data())
for record in results:
print(record)
driver.close()
Whenever I run any query, I get the following error -
ServiceUnavailable: Couldn't connect to localhost:7687 (resolved to ('127.0.0.1:7687',)):
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused)
Everything works fine if I try the same using a neo4j sandbox. Can someone please help me how I get this to work without using sandbox?
Thanks!