You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that hasura actions are not preserving the original order of the json object received via REST endpoint.
For example, I'm using a REST server which returns a table with data already ordered by the field total_count (descending). total_count is a computed field, customer_idx is a foreign key to the customer table.
I think it's because when you perform a join of your actions result with table, ordering is lost. This happens at the PG layer itself so not sure if there is any easy fix...
Hi, I want to update that we are launching Hasura V3 (DDN) this month. In V3, we are able to rebuild the core engine in a manner that feature wise, works consistently across intents (data source, actions, code etc), and for any kind of joins. This problem is now solved in V3.
I would highly suggest to join us to see the full power of Hasura DDN at the Hasura Dev Day on April 16 🎉. Sign up here: https://hasura.io/dev-day. Can't make it? Sign up anyway and we'll send you the recording.
Hi,
It seems that hasura actions are not preserving the original order of the json object received via REST endpoint.
For example, I'm using a REST server which returns a table with data already ordered by the field total_count (descending).
total_count is a computed field, customer_idx is a foreign key to the customer table.
Query 1:
Results are correctly ordered here by total_count (descending) as passed by the REST server:
Query 2:
Now hasura is changing the order of results, ordering by customer_idx (customer is a relationship to a foreign key):
Other tests
The text was updated successfully, but these errors were encountered: