Liking cljdoc? Tell your friends :D

com.wsscode.pathom3.entity-tree


create-entityclj/s

(create-entity x)
source

entityclj/s

(entity {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]})

Returns the entity tree value from env

Returns the entity tree value from env
sourceraw docstring

merge-entity-dataclj/s

(merge-entity-data entity new-data)

Specialized merge versions that work on entity data.

Specialized merge versions that work on entity data.
sourceraw docstring

reset-entity!clj/s

(reset-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]}
               entity-tree)
source

swap-entity!clj/s

(swap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]} f)
(swap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]} f x)
(swap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]} f x y)
(swap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]}
              f
              x
              y
              &
              args)

Swap cache-tree at the current path. Returns the updated whole cache-tree.

Swap cache-tree at the current path. Returns the updated whole cache-tree.
sourceraw docstring

vswap-entity!clj/s

(vswap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]} f)
(vswap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]} f x)
(vswap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]} f x y)
(vswap-entity! {:com.wsscode.pathom3.entity-tree/keys [entity-tree*]}
               f
               x
               y
               &
               args)

Swap cache-tree at the current path. Returns the updated whole cache-tree.

Swap cache-tree at the current path. Returns the updated whole cache-tree.
sourceraw docstring

with-entityclj/s

(with-entity env entity-tree)

Set the entity in the environment. Note in this function you must send the cache-tree as a map, not as an atom.

Set the entity in the environment. Note in this function you must send the cache-tree
as a map, not as an atom.
sourceraw docstring

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

× close