diff --git a/code/csharp/Example.cs b/code/csharp/Example.cs index 7ba42ce..1727965 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 6b6f64d..d7849a9 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 8030aab..f8c1f48 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 2bebf1b..0173b32 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 cfa06f0..4379215 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 = '''