From 8104818d564e39d0843bf39dd82cb9e3ac648dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandbox=20=F0=9F=A4=96?= Date: Tue, 2 May 2023 10:57:17 +0000 Subject: [PATCH] Triggered by direct commit. Origin: https://github.com/neo4j-contrib/sandbox-code-updater/commit/39d2d31fd8724322c00f03e44e3b6fecbb462a46 --- code/csharp/Example.cs | 2 +- code/go/example.go | 2 +- code/java/Example.java | 2 +- code/javascript/example.js | 4 ++-- code/python/example.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/csharp/Example.cs b/code/csharp/Example.cs index 6f56df4..e8077e4 100644 --- a/code/csharp/Example.cs +++ b/code/csharp/Example.cs @@ -13,7 +13,7 @@ namespace dotnet { class Example { static async Task Main() { - var driver = GraphDatabase.Driver("bolt://:", + var driver = GraphDatabase.Driver("neo4j://:", AuthTokens.Basic("", "")); var cypherQuery = diff --git a/code/go/example.go b/code/go/example.go index 6274d0f..be46783 100644 --- a/code/go/example.go +++ b/code/go/example.go @@ -10,7 +10,7 @@ import ( ) func main() { - results, err := runQuery("bolt://:", "neo4j", "", "") + results, err := runQuery("neo4j://:", "neo4j", "", "") if err != nil { panic(err) } diff --git a/code/java/Example.java b/code/java/Example.java index 9aa8eb6..4e7cd7a 100644 --- a/code/java/Example.java +++ b/code/java/Example.java @@ -11,7 +11,7 @@ public class Example { public static void main(String...args) { - Driver driver = GraphDatabase.driver("bolt://:", + Driver driver = GraphDatabase.driver("neo4j://:", AuthTokens.basic("","")); try (Session session = driver.session(SessionConfig.forDatabase("neo4j"))) { diff --git a/code/javascript/example.js b/code/javascript/example.js index 18b7425..221fecf 100644 --- a/code/javascript/example.js +++ b/code/javascript/example.js @@ -1,9 +1,9 @@ // npm install --save neo4j-driver // node example.js const neo4j = require('neo4j-driver'); -const driver = neo4j.driver('bolt://:', +const driver = neo4j.driver('neo4j://:', neo4j.auth.basic('', ''), - {/* encrypted: 'ENCRYPTION_OFF' */}); + {}); const query = ` diff --git a/code/python/example.py b/code/python/example.py index 872e98f..7420b36 100644 --- a/code/python/example.py +++ b/code/python/example.py @@ -1,10 +1,10 @@ -# pip3 install neo4j-driver +# pip3 install neo4j # python3 example.py from neo4j import GraphDatabase, basic_auth driver = GraphDatabase.driver( - "bolt://:", + "neo4j://:", auth=basic_auth("", "")) cypher_query = '''