Liking cljdoc? Tell your friends :D

workflo.macros.entity.refs


+refmap+clj/s

source

entity-backrefsclj/s

(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}`.
sourceraw docstring

entity-refsclj/s

(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}`.
sourceraw docstring

register-entity-refs!clj/s

(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.
sourceraw docstring

remove-backrefs-toclj/s

(remove-backrefs-to entity-name backrefs)
source

unregister-entity-refs!clj/s

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close