(entity-backrefs entity-name)
Returns all references to an entity from other entities. The result
is a map that maps attribute names (e.g. :post/author
) to reference
infos (e.g. {:entity 'post :many? true}
.
Returns all references to an entity from other entities. The result is a map that maps attribute names (e.g. `:post/author`) to reference infos (e.g. `{:entity 'post :many? true}`.
(entity-refs entity-name)
Returns all references from an entity to other entities. The result
is a map that maps attribute names (e.g. :user/friends
) to reference
infos (e.g. {:entity 'user :many? true}
.
Returns all references from an entity to other entities. The result is a map that maps attribute names (e.g. `:user/friends`) to reference infos (e.g. `{:entity 'user :many? true}`.
(register-entity-refs! entity-name entity-def)
Adds all refs defined by an entity to the intetnal refmap. This includes adding backrefs in the reverse direction.
Adds all refs defined by an entity to the intetnal refmap. This includes adding backrefs in the reverse direction.
(unregister-entity-refs! entity-name)
Removes all refs defined by an entity from the internal refmap. This includes backrefs created for the refs of the entity.
Removes all refs defined by an entity from the internal refmap. This includes backrefs created for the refs of the entity.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close