Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5aa4658

Browse files
authored
Merge pull request #10 from neo4j-graph-examples/graph-data-science-dca68f0d813956bbd54bcecf63ae6947ed72ff48e053fcc94333539b010ad44a
🤖 Sandbox code update
2 parents 90da932 + 29a03d8 commit 5aa4658

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎code/csharp/Example.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ static async Task Main() {
1818

1919
var cypherQuery =
2020
@"
21-
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
22-
RETURN other.name as person
21+
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
22+
RETURN other.name as person
2323
";
2424

2525
var session = driver.AsyncSession(o => o.WithDatabase("neo4j"));

‎code/go/example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func runQuery(uri, database, username, password string) (result []string, err er
3030
results, err := session.ReadTransaction(func(transaction neo4j.Transaction) (interface{}, error) {
3131
result, err := transaction.Run(
3232
`
33-
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
34-
RETURN other.name as person
33+
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
34+
RETURN other.name as person
3535
`, map[string]interface{}{
3636
"name": "Jaime Lannister",
3737
})

‎code/java/Example.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public static void main(String...args) {
1717
try (Session session = driver.session(SessionConfig.forDatabase("neo4j"))) {
1818

1919
String cypherQuery =
20-
"MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)" +
21-
"RETURN other.name as person";
20+
"MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)\n" +
21+
"RETURN other.name as person";
2222

2323
var result = session.readTransaction(
2424
tx -> tx.run(cypherQuery,

‎code/javascript/example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const driver = neo4j.driver('bolt://<HOST>:<BOLTPORT>',
77

88
const query =
99
`
10-
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
11-
RETURN other.name as person
10+
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
11+
RETURN other.name as person
1212
`;
1313

1414
const params = {"name": "Jaime Lannister"};

‎code/python/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
auth=basic_auth("<USERNAME>", "<PASSWORD>"))
99

1010
cypher_query = '''
11-
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
12-
RETURN other.name as person
11+
MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)
12+
RETURN other.name as person
1313
'''
1414

1515
with driver.session(database="neo4j") as session:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /