diff --git a/code/csharp/Example.cs b/code/csharp/Example.cs index 0b27683..780b01a 100644 --- a/code/csharp/Example.cs +++ b/code/csharp/Example.cs @@ -18,8 +18,8 @@ static async Task Main() { var cypherQuery = @" - MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) - RETURN other.name as person + MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) + RETURN other.name as person "; var session = driver.AsyncSession(o => o.WithDatabase("neo4j")); diff --git a/code/go/example.go b/code/go/example.go index 06ded67..405b065 100644 --- a/code/go/example.go +++ b/code/go/example.go @@ -30,8 +30,8 @@ func runQuery(uri, database, username, password string) (result []string, err er results, err := session.ReadTransaction(func(transaction neo4j.Transaction) (interface{}, error) { result, err := transaction.Run( ` - MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) - RETURN other.name as person + MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) + RETURN other.name as person `, map[string]interface{}{ "name": "Jaime Lannister", }) diff --git a/code/java/Example.java b/code/java/Example.java index 4831797..3857d62 100644 --- a/code/java/Example.java +++ b/code/java/Example.java @@ -17,8 +17,8 @@ public static void main(String...args) { try (Session session = driver.session(SessionConfig.forDatabase("neo4j"))) { String cypherQuery = - "MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) " + - "RETURN other.name as person"; + "MATCH (c:Person{name:$name})-[r:INTERACTS]->(other)\n" + + " RETURN other.name as person"; var result = session.readTransaction( tx -> tx.run(cypherQuery, diff --git a/code/javascript/example.js b/code/javascript/example.js index 567db85..43202c3 100644 --- a/code/javascript/example.js +++ b/code/javascript/example.js @@ -7,8 +7,8 @@ const driver = neo4j.driver('bolt://:', const query = ` - MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) - RETURN other.name as person + MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) + RETURN other.name as person `; const params = {"name": "Jaime Lannister"}; diff --git a/code/python/example.py b/code/python/example.py index beff8a9..16e5c55 100644 --- a/code/python/example.py +++ b/code/python/example.py @@ -8,8 +8,8 @@ auth=basic_auth("", "")) cypher_query = ''' -MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) -RETURN other.name as person +MATCH (c:Person{name:$name})-[r:INTERACTS]->(other) + RETURN other.name as person ''' with driver.session(database="neo4j") as session:

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