Setting default sorting order for graphql responses
See original GitHub issueWhen create table or modifying table, we should allow specifying default sorting columns.
For example, all my tables have created_at
columns, i’d love to set created_at
as default order when querying.
Multiple columns default sorting should be allowed, too.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Graphql default order change - Storyblok
In this query example the items inside “desktop_navigation_items” (Multi-options field) are sorted by the order they are visible in the content ...
Read more >GraphQL query with sorting by date - JavaScript - Amplify Docs
In our example, you will implement sorting results by date in either an ascending or descending order by implementing an additional data access...
Read more >Order and Pagination - GraphQL - Dgraph
Every type with fields whose types can be ordered ( Int , Float , String , DateTime ) gets ordering built into the...
Read more >GraphQL Filtering, Pagination & Sorting Tutorial with JavaScript
Filtering, Pagination & Sorting ; Go ahead and add the filter string to the feed query in your application schema: · ) ;...
Read more >Postgres: Sort query results | Hasura GraphQL Docs
The sort order (ascending vs. descending) is set by specifying the asc or desc enum value for the column name in the order_by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I cannot think of any specific tooling more helpul than the usual graphql libraries used to parse GraphQL queries. Maybe you could ask the Hasura community if they have any smarter solutions. You can join our discord server via https://discord.gg/vBPpJkS if you havent already 😃
@rikinsk The problem is simple.
WIth current query
What will be the order of results ?
In this case, i’d love to force the default order returning by query above to be set to
created_at: asc_nulls_last
, for example.This is about graphql API query, not console.