How to load archived resources?
I need to have resource data available in other resource listings even if they're archived. Currently, they're being filtered out. How can I configure them properly for these use cases?
Solution:Jump to solution
if so you can configure a read actions that don't apply the filter using https://hexdocs.pm/ash_archival/dsl-asharchival-resource.html#archive-exclude_read_actions and configure the read action on the relationship e.g. with https://hexdocs.pm/ash/dsl-ash-resource.html#relationships-has_one-read_action
3 Replies
are you using AshArchival?
Solution
if so you can configure a read actions that don't apply the filter using https://hexdocs.pm/ash_archival/dsl-asharchival-resource.html#archive-exclude_read_actions and configure the read action on the relationship e.g. with https://hexdocs.pm/ash/dsl-ash-resource.html#relationships-has_one-read_action
Yes I'm using AshArchival
Thank you very much this works!