docs/dev_manual_examples.rb
######################################
# Session API - Simple Session
# Auto-commit transaction
######################################
Session API - Simple Session
Auto-commit transaction
Session API - Simple Session Auto - commit transaction
def add_person(name)
  driver.session do |session|
    session.run('CREATE (a:Person {name: $name})', name: name)
  end
end
def add_person ( name ) driver . session do | session | session . run ( 'CREATE (a:Person {name: $name})' , name : name ) end end
Session API - Simple Session
Auto-commit transaction
Session API - Simple Session Auto - commit transaction
name
<not_specific>