pub type NestedCallHook = Box<dyn Fn(&str, FnType, Value, AuthInfo) -> Result<Value, (String, String)> + Send + Sync>;Expand description
Callback invoked when a running function asks to run another function
(action → query/mutation). The wrapper is responsible for any per-type
setup — notably wrapping mutations in their own BEGIN/COMMIT, which
can’t happen inside call_inner because that path holds the io_lock
and is called with the outer action’s non-transactional store.
Returns the nested function’s return value or a FnCallError-shaped
(code, message) pair. The runner translates the error back into the
NDJSON protocol reply so the TS side sees the same shape it always did.
Aliased Type§
pub struct NestedCallHook(/* private fields */);