spec/neo4j/driver/dev_manual_examples_spec.rb
# Create a friendship between two people.
Create a friendship between two people.
Create a friendship between two people .
def make_friends(tx, person1, person2)
      tx.run('MATCH (a:Person {name: $person_1}) ' \
             'MATCH (b:Person {name: $person_2}) ' \
             'MERGE (a)-[:KNOWS]->(b)',
             person_1: person1, person_2: person2)
    end
def make_friends ( tx , person1 , person2 ) tx . run ( 'MATCH (a:Person {name: $person_1}) ' 'MATCH (b:Person {name: $person_2}) ' 'MERGE (a)-[:KNOWS]->(b)' , person_1 : person1 , person_2 : person2 ) end
Create a friendship between two people.
Create a friendship between two people .
tx
<not_specific>
person1
<not_specific>
person2
<not_specific>