Code of Conduct
AI Policy
Is your feature request related to a problem? Please describe.
I would like to be able to set a default sort for attachments at the db level.
Describe the solution you'd like
Ash's "regular" relationship DSL has a sort option, ash_storage's relationship macros do not and I would like them to. This is convenient when loading attachments via :load.
Describe alternatives you've considered
- Sorting in Elixir.
- Adding a domain function to retrieve attachments by host id with sort option.
- Using
load: sorted_attachments().
These work but default-sort would be very convenient in some cases.
Additional context
I'm happy to do the work here!
Code of Conduct
AI Policy
Is your feature request related to a problem? Please describe.
I would like to be able to set a default sort for attachments at the db level.
Describe the solution you'd like
Ash's "regular" relationship DSL has a
sortoption, ash_storage's relationship macros do not and I would like them to. This is convenient when loading attachments via:load.Describe alternatives you've considered
load: sorted_attachments().These work but default-sort would be very convenient in some cases.
Additional context
I'm happy to do the work here!