I don’t know if this is intended, but with the following association:
defmodule AlgorithmVertex do
...
has_many(:edges_from, AlgorithmEdge, foreign_key: :a_id)
has_many(:edges_to, AlgorithmEdge, foreign_key: :b_id)
has_many(:children,
through: [:edges_from, :b],
preload_order: [asc: :x]
)
If I do:
Repo.preload(my_vertex, :children)
There is no preload order used. The SQL has no order by
.