私はNeo4j.rbバージョン8にアップグレード中です。upgrade guideの指示に従うと、以前通過していたスペックが今は失敗しています。Record Persistence in Neo4j.rb 8.0.x
具体的には、count
、persisted?
、all
、last
とfind
が互いに折り重なっていない来ているように見えます。私はアカウントを作成することができますが、それは永続的であることを見て、私はアカウントをカウントする場合はそれを参照してください、私は最後のアカウント、またはすべてのアカウントを探したり、
以下のコンソールセッションからの出力。私は狂ってる?
[1] pry> account = Account.create(company_name: "Acme Corporation, LLC", street_address: "1234 Fake Lane", city: "Pleasantville", state: "CA", zip: "12345", country: "United States", phone: "555-555-5555", contact_name: "Some Guy", contact_phone: "123-456-7890", contact_email: "[email protected]")
=> #<Account uuid: "30c44118-ac45-4559-b63b-8e82fafb16cd", city: "Pleasantville", company_name: "Acme Corporation, LLC", contact_email: "[email protected]", contact_name: "Some Guy", contact_phone: "123-456-7890", country: "United States", created_at: Thu, 23 Mar 2017 19:13:52 +0000, phone: "555-555-5555", remote_id: nil, state: "CA", street_address: "1234 Fake Lane", updated_at: Thu, 23 Mar 2017 19:13:52 +0000, zip: "12345">
[2] pry> account.persisted? => true
[3] pry> Account.count => 1
[4] pry> Account.last => nil
[5] pry> Account.find(account.id) Neo4j::ActiveNode::Labels::RecordNotFound: Couldn't find Account with 'uuid'=30c44118-ac45-4559-b63b-8e82fafb16cd