Cannot use `^variable` outside of match clauses
This error disappears when you add
import Ash.Query but then Elixir complains that it is an unneeded import, is there a better way around this?