0
class Client
  include Neo4j::ActiveNode
end

> client = Client.new
 => #<Client uuid: nil, bot_client_id: nil, created_at: nil, email: nil, first_name: nil, last_name: nil, sms: nil, telegram_id: nil, updated_at: nil> 

My expectation is that the uuid would be populated.

Satchel
  • 16,414
  • 23
  • 106
  • 192

1 Answers1

1

The uuid is only populated once the node object has been saved. So you could either do:

client = Client.create

Or:

client = Client.new
client.save
Brian Underwood
  • 10,746
  • 1
  • 22
  • 34
  • Ah that makes sense. I need to check now if I am actually establishing a session. I assume I am still not. Thanks. – Satchel Apr 21 '17 at 13:52