ash-project / ash-project/ash_json_api_wrapper
Support for sorting parameters
- Dominant language
- Elixir
- Stars
- 27
- Forks
- 11
- Avg merge
- 7h 41m
- Merged PRs (30d)
- 1
Description
**Is your feature request related to a problem? Please describe.**
The only sorting supported by this wrapper currently is `:runtime_sort?` which may be inefficient if the sorting is supported by the API.
**Describe the solution you'd like**
The ability to define and use `sort_with` and `order_with` properties in the endpoint definition
**Describe alternatives you've considered**
Currently I am using `:runtime_sort?`
**Express the feature either with a change to resource syntax, or with a change to the resource interface**
```elixir
endpoint :list_users do
path("/users")
limit_with {:param, "limit"}
sort_with {:param, "sortBy"}
order_with {:param, "order"}
# runtime_sort? true
paginator CustomPaginator
end
```
Contributor guide
Assessment
This issue has not been assessed yet.