Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Sandbox code update #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/csharp/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace dotnet {
class Example {
static async Task Main() {
var driver = GraphDatabase.Driver("bolt://<HOST>:<BOLTPORT>",
var driver = GraphDatabase.Driver("neo4j://<HOST>:<BOLTPORT>",
AuthTokens.Basic("<USERNAME>", "<PASSWORD>"));

var cypherQuery =
Expand Down
2 changes: 1 addition & 1 deletion code/go/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func main() {
results, err := runQuery("bolt://<HOST>:<BOLTPORT>", "neo4j", "<USERNAME>", "<PASSWORD>")
results, err := runQuery("neo4j://<HOST>:<BOLTPORT>", "neo4j", "<USERNAME>", "<PASSWORD>")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion code/java/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Example {

public static void main(String...args) {

Driver driver = GraphDatabase.driver("bolt://<HOST>:<BOLTPORT>",
Driver driver = GraphDatabase.driver("neo4j://<HOST>:<BOLTPORT>",
AuthTokens.basic("<USERNAME>","<PASSWORD>"));

try (Session session = driver.session(SessionConfig.forDatabase("neo4j"))) {
Expand Down
4 changes: 2 additions & 2 deletions code/javascript/example.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// npm install --save neo4j-driver
// node example.js
const neo4j = require('neo4j-driver');
const driver = neo4j.driver('bolt://<HOST>:<BOLTPORT>',
const driver = neo4j.driver('neo4j://<HOST>:<BOLTPORT>',
neo4j.auth.basic('<USERNAME>', '<PASSWORD>'),
{/* encrypted: 'ENCRYPTION_OFF' */});
{});

const query =
`
Expand Down
4 changes: 2 additions & 2 deletions code/python/example.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# pip3 install neo4j-driver
# pip3 install neo4j
# python3 example.py

from neo4j import GraphDatabase, basic_auth

driver = GraphDatabase.driver(
"bolt://<HOST>:<BOLTPORT>",
"neo4j://<HOST>:<BOLTPORT>",
auth=basic_auth("<USERNAME>", "<PASSWORD>"))

cypher_query = '''
Expand Down