pass attribute to expression in calculation
I have the following expression in a calculation. This works if the resource has the attribute
starts_at. But how to make this expression generic that any attribute can be used.
Ive tried passing :starts_at in opts but with arguments: %{field: :starts_at}. but how it is not clear how to use it
2 Replies
it'll be a ref - eg.
ref(opts[:field]) I thinkyes that works!
I am still a bit shaky when it comes to how and when to use
I am still a bit shaky when it comes to how and when to use
ref,arg, parent and i think there are some more.