docs/dev_manual_examples.rb
# Create an employment relationship to a pre-existing company node.
# This relies on the person first having been created.
Create an employment relationship to a pre-existing company node.
This relies on the person first having been created.
Create an employment relationship to a pre - existing company node . This relies on the person first having been created .
def employ(tx, person, company)
  tx.run('MATCH (person:Person {name: $person_name}) ' \
         'MATCH (company:Company {name: $company_name}) ' \
         'CREATE (person)-[:WORKS_FOR]->(company)',
         person_name: person, company_name: company)
end
def employ ( tx , person , company ) tx . run ( 'MATCH (person:Person {name: $person_name}) ' 'MATCH (company:Company {name: $company_name}) ' 'CREATE (person)-[:WORKS_FOR]->(company)' , person_name : person , company_name : company ) end
Create an employment relationship to a pre-existing company node.
Create an employment relationship to a pre - existing company node .
tx
<not_specific>
person
<not_specific>
company
<not_specific>