module

Neo4j::Model

Constants

ConnectionPool = ::ConnectionPool(Bolt::Connection).new(capacity: Neo4jModel.settings.pool_size) do Bolt::Connection.new(Neo4jModel.settings.neo4j_bolt_url, ssl: false) end

Instance methods

[](key : Symbol | String) : Neo4j::Value | Nil
Source
[]?(key : Symbol | String) : Neo4j::Value | Nil
Source
errors
Source
get(prop : String | Symbol) : Neo4j::Value | Nil
Source
get_bool(prop : Symbol | String) : Bool | Nil
Source
get_i(prop : Symbol | String) : Int32 | Nil
Source
get_s(prop : String | Symbol) : String | Nil
Source
id

id works differently from uuid because sometimes presence of id is used like #persisted? but in our case, for various reasons, we assign a uuid even before the node is created

Source
label
Source
new_record?
Source
persisted?
Source
reload
Source
save(*, skip_callbacks = false) : Bool
Source
set(prop : String | Symbol, val : Neo4j::Value)
Source
set_attributes(from node : Neo4j::Node) : Bool
Source
set_attributes(hash : Hash(String, PropertyType)) : Bool
Source
touch
Source
update(hash : Hash(String, PropertyType)) : Bool
Source
update
Source
update_columns(hash : Hash(String, PropertyType)) : Bool
Source
update_columns
Source
uuid
Source
valid?(*, skip_callbacks = false)
Source

Macros

belongs_to(klass, *, rel_type, name = "", plural = "", unique = true)

equivalent of ActiveNode has_one :in

Source
belongs_to_many(klass, *, rel_type, name = "", unique = true)

equivalent of ActiveNode has_many :in

Source
has_many(klass, *, rel_type, name = "", unique = true)

equivalent of ActiveNode has_many :out

Source
has_one(klass, *, rel_type, name = "", plural = "", unique = true)

equivalent of ActiveNode has_one :out

Source
scope(name, proc)
Source

Nested types