get_strategy

function get_strategy(strategy_name: text): _strategy(source)

Returns a strategy, given the mount name of the operation that defines it.

Throws "MISSING STRATEGY" if the strategy cannot be found. If strategy_name is correct, this could also be caused by having misconfigured the registration defined in the function that extends strategy in such a way that the strategy name and the _strategy.op.mount_name are not the same value.

Parameters

strategy_name

the mount name of the operation found in _strategy.op

See also

add_strategy

for an easy way to avoid extension misconfiguration issues