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

🤖 Sandbox code update #10

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

Merged
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
4 changes: 2 additions & 2 deletions code/csharp/Example.cs
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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
View file Open in desktop
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

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