Using struct data in filter expressions
I think I've tried to do this a few times and have never gotten it to work properly.
I have a calculation that takes a struct as an argument, and I want to use data from that struct in the expression, eg.
This doesn't error, but generates SQL like
It's probably something simple but I've tried lots of things like
I have a calculation that takes a struct as an argument, and I want to use data from that struct in the expression, eg.
This doesn't error, but generates SQL like
ash_elixir_or((d0."speaker_faction_id"::text IS NULL)::boolean, (d0."speaker_faction_id"::text::text = NULL::text)::boolean)::boolean)::boolean) (so the second part isn't working properly).It's probably something simple but I've tried lots of things like
^arg(:npc)[:id], ^ref([arg(:npc)], :id), and nothing else will even compileSolution
instead of
^get_path(arg(:npc), :faction_id) it should be get_path(^arg(:npc), :faction_id)