Liking cljdoc? Tell your friends :D

bff.executor


BffTransformercljprotocol

transformclj

(transform this args chain-ctx mapped)
source

execute-graphclj

(execute-graph chain args request-ctx)

Execute the full backend_chain according to dependency waves. Returns a task that resolves to the final chain-ctx map.

Execution model: • Steps with no unmet deps form a wave and run in PARALLEL (m/join) • Waves are executed SEQUENTIALLY • Step errors are captured in chain-ctx, never thrown • Critical steps (if declared) can abort via error/throw-if-critical!

Execute the full backend_chain according to dependency waves.
Returns a task that resolves to the final chain-ctx map.

Execution model:
  • Steps with no unmet deps form a wave and run in PARALLEL (m/join)
  • Waves are executed SEQUENTIALLY
  • Step errors are captured in chain-ctx, never thrown
  • Critical steps (if declared) can abort via error/throw-if-critical!
sourceraw docstring

register-transformer!clj

(register-transformer! k transformer)

Register a BffTransformer (or plain fn) under key k.

Register a BffTransformer (or plain fn) under key k.
sourceraw docstring

run-endpointclj

(run-endpoint endpoint args request-ctx)

Build and execute the full endpoint pipeline.

Returns a missionary task resolving to: {:data {...} ; the mapped output fields :errors [{...}] ; any step errors (may be empty)}

Partial failures are represented in :errors while :data contains whatever fields could be resolved from successful steps.

Build and execute the full endpoint pipeline.

Returns a missionary task resolving to:
  {:data   {...}         ; the mapped output fields
   :errors [{...}]       ; any step errors (may be empty)}

Partial failures are represented in :errors while :data contains
whatever fields could be resolved from successful steps.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close