Last active
April 28, 2023 21:06
-
-
Save neverstew/a58498be83fe247f19a92f54be1f5163 to your computer and use it in GitHub Desktop.
Broken neo4j-driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import neo4j from "neo4j-driver"; | |
const uri = 'YOUR_AURA_URI'; | |
const driverConfig = { | |
logging: neo4j.logging.console("debug"), | |
connectionTimeout: 5000, | |
connectionAcquisitionTimeout: 5000, | |
}; | |
await neo4j.hasReachableServer( | |
uri, | |
driverConfig | |
); | |
console.log("Reachable server"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "neo4j-driver-test", | |
"module": "index.js", | |
"type": "module", | |
"dependencies": { | |
"neo4j-driver": "^5.7.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment