Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/csharp/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
4 changes: 2 additions & 2 deletions code/go/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
Expand Down
4 changes: 2 additions & 2 deletions code/java/Example.java
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions code/javascript/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const driver = neo4j.driver('bolt://<HOST>:<BOLTPORT>',

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"};
Expand Down
4 changes: 2 additions & 2 deletions code/python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
auth=basic_auth("<USERNAME>", "<PASSWORD>"))

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:
Expand Down