Schema preload_order
cannot be overriden by passing ordered query
#4535
Labels
preload_order
cannot be overriden by passing ordered query
#4535
Elixir version
Elixir 1.17.3 (compiled with Erlang/OTP 27)
Database and Version
PostgreSQL 17.0
Ecto Versions
ecto 3.12.4
Database Adapter and Versions (postgrex, myxql, etc)
postgrex 0.19.2
Current behavior
Expected behavior
I would have expected the
order_by
from the preload query (^from(c in Comment, order_by: [desc: :likes])]
) to take precedence over the schema orderingpreload_order: [asc: :likes]
.If however, it is not a bug but an expected feature, would it be possible to achieve this in some other way?
The text was updated successfully, but these errors were encountered: