(after-build-fn after-build-config)
(build factory build-opts output-opts)
(build-context factory build-opts)
(build-entity execution-context
{:as factory
:keys [before-build after-build transients]
:or {before-build identity}}
build-opts)
(build-list factory n build-opt+ output-opts)
The output of this should be:
First: an inspectable list of entities (i.e. not just their primary id or assoc-as values).
Second: a list that can be passed to other builds. The directives code can handle replacing the list entries with the correct assoc-as value.
Third: a list that can be destructured into contextful entities. These entities can in turn be passed as dependents in other builds.
With this in mind we do something weird looking: the primary value of the context that's
passed to output/build
is a list of contextful entities.
The output of this should be: First: an inspectable list of entities (i.e. not just their primary id or assoc-as values). Second: a list that can be passed to other builds. The directives code can handle replacing the list entries with the correct assoc-as value. Third: a list that can be destructured into contextful entities. These entities can in turn be passed as dependents in other builds. With this in mind we do something weird looking: the primary value of the context that's passed to `output/build` is a list of contextful entities.
(build-list-context factory number build-opt+)
(build-many factory number build-opt+)
(coerce-to-list build-opt-list+)
(create factory build-opts output-opts)
(create-list factory n build-opt-list output-opts)
(persist-and-propagate! output-opts context entity-id)
(persist-context output-opts built-context)
(remove-transients context transients)
(resolve-factory factory)
(unchanged? entity persisted-entity)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close