Skip to content

Instantly share code, notes, and snippets.

@neverstew
Last active April 28, 2023 21:06
Show Gist options
  • Save neverstew/a58498be83fe247f19a92f54be1f5163 to your computer and use it in GitHub Desktop.
Save neverstew/a58498be83fe247f19a92f54be1f5163 to your computer and use it in GitHub Desktop.
Broken neo4j-driver
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");
{
"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