In order to be able to read the archived and none archived value. the documentation says I need to create a separate resource. Shall this separate resource have everything same as the original one, except it does not have the 'extensions: [AshArchival.Resource]' and instead have the
attributes do attribute(:archived_at, :utc_datetime_usec, public?: true) end
attributes do attribute(:archived_at, :utc_datetime_usec, public?: true) end
Should I also duplicate all the policies, calculation etc... too ?
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.