I'm looking at some Elixir code that looks like this:
@to_preload [
:last_modified_by,
change_request: [application: [:app_definition]],
comments: [:user]
]
def preload(query) do
preload(query, ^@to_preload)
end
I believe the call preload(query, ^@to_preload) is actually to the Query.preload/3 macro as the file has an import Ecto.Query.
So my question is, what exactly is the ^ doing in front of the module attribute @to_preload in that call?