Using config values in filter expressions
I have a fairly simple read action, like so:
The max attempts is set in the config and I would like to use that rather than a hardcoded count. I couldn't figure out a way to get it in there nicely as-is. Is the best way to do it using a
prepare
function?5 Replies
yes, a preparation is the best way 👍
I guess you could use
lazy
though now that I think of itWhat is
lazy
exactly?
It takes an MFA and evaluates it when the expression is evaluated
So either the
lazy/1
expression or a preparationI think I'd prefer to do a preparation.
Same 🙂