docs/dev_manual_examples.rb
# Match and display all friendships.
Match and display all friendships.
Match and display all friendships .
def print_friends(tx)
  result = tx.run('MATCH (a)-[:KNOWS]->(b) RETURN a.name, b.name')
  result.each do |record|
    puts "#{record['a.name']} knows #{record['b.name']}"
  end
end
def print_friends ( tx ) result = tx . run ( 'MATCH (a)-[:KNOWS]->(b) RETURN a.name, b.name' ) result . each do | record | puts "#{record['a.name']} knows #{record['b.name']}" end end
Match and display all friendships.
Match and display all friendships .
tx
<not_specific>