I've been having some issues executing queries with select bidings and ordering by these bidings using fragments.
If I have some query that is using :select bidings for example and ordered by it using fragment:
from(
u in User,
join: c in Contact,
on: c.user_id = u.id,
order_by: fragment("new_field")
select: %{
new_field: c.some_field
}
)
My cursor fields can't find my new_field on my query during pagination but none option worked:
Hey guys.
I've been having some issues executing queries with select bidings and ordering by these bidings using fragments. If I have some query that is using :select bidings for example and ordered by it using fragment:
My cursor fields can't find my new_field on my query during pagination but none option worked:
I also tried using but not had success
I'm doing some mistake or it is just not possible to do it?