Sha256: b95b9956990d1d9626672f1526e5c72ce43537459c23a20ca72ce4963fb86d9b

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

require 'neo4j'
s = Neo4j::Session.open
class Person
  include Neo4j::ActiveNode
  property :name
  has_many :out, :friends
end

t = Neo4j::Transaction.new

p = Person.new
p.save
p.friends << Person.create << Person.create
id = p.id
puts "ID #{id}"
puts "FRIENDS #{p.friends.to_a.count}"
t.fail
t.close
puts "DONE"

puts "LOAD #{Neo4j::Node.load(id)}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
neo4j-3.0.0.alpha.10 lib/test.rb~
neo4j-3.0.0.alpha.9 lib/test.rb~