未创建neo4j uuid

未创建neo4j uuid,neo4j,neo4j.rb,graphenedb,Neo4j,Neo4j.rb,Graphenedb,我的期望是uuid将被填充。uuid仅在节点对象保存后才会被填充。因此,您可以: 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

我的期望是uuid将被填充。

uuid仅在节点对象保存后才会被填充。因此,您可以:

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> 
或:


啊,这是有道理的。我现在需要检查我是否真的在建立会话。我想我还是没有。谢谢
client = Client.create
client = Client.new
client.save