defmodule Insi.Subscriptions.SubscriptionPlan do use Ash.Resource... attributes do ... attribute :features, {:array, Feature} do public? true default [] end end actions do ... update :add_features do argument :features, {:array, Feature} manual AddFeatures end end code_interface do define :add_features, args: [:features] endend
defmodule Insi.Subscriptions.SubscriptionPlan do use Ash.Resource... attributes do ... attribute :features, {:array, Feature} do public? true default [] end end actions do ... update :add_features do argument :features, {:array, Feature} manual AddFeatures end end code_interface do define :add_features, args: [:features] endend
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.