module Neo4j::Model
Defined in:
neo4j/associations.crneo4j/base.cr
neo4j/callbacks.cr
neo4j/persistence.cr
neo4j/querying.cr
neo4j/scopes.cr
neo4j/validation.cr
Instance Method Summary
- #errors
-
#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
- #label
- #new_record?
- #persisted?
- #rel
- #reload
- #save(*, skip_callbacks = false)
- #set_attributes(from node : Neo4j::Node)
- #set_attributes(hash : Hash(String, PropertyType))
- #update(hash : Hash(String, PropertyType))
- #update_columns(hash : Hash(String, PropertyType))
- #update_columns(**params)
- #uuid
- #valid?(*, skip_callbacks = false)
Macro Summary
-
belongs_to(klass, *, rel_type, name = "", unique = true)
equivalent of ActiveNode has_one :in
-
belongs_to_many(klass, *, rel_type, name = "", unique = true)
equivalent of ActiveNode has_many :in
-
has_many(klass, *, rel_type, name = "", unique = true)
equivalent of ActiveNode has_many :out
-
has_one(klass, *, rel_type, name = "", unique = true)
equivalent of ActiveNode has_one :out
- scope(name, proc)
Instance Method Detail
def 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
Macro Detail
equivalent of ActiveNode has_one :in
equivalent of ActiveNode has_many :in
equivalent of ActiveNode has_many :out
equivalent of ActiveNode has_one :out