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> 

我的期望是 uuid 将被填充。

4

1 回答 1

1

uuid仅在保存节点对象后才会填充。所以你可以这样做:

client = Client.create

或者:

client = Client.new
client.save
于 2017-04-21T11:30:56.397 回答