ash_phoenix icon indicating copy to clipboard operation
ash_phoenix copied to clipboard

Support `drop_param`

Open yujonglee opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe. Ecto has drop_param. (https://hexdocs.pm/ecto/Ecto.Changeset.html#cast_assoc/3-custom-actions) I want to do same thing with Ash, but I can't.

Describe the solution you'd like Same or similar to Ecto's.

Describe alternatives you've considered I can workaround with update_form.

AshPhoenix.Form.update_form(form, parent_path, fn form -> 
  params = AshPhoenix.Form.params(form)
  new_params = modify_params(params)
  AshPhoenix.Form.validate(form, new_params)
end)

yujonglee avatar Oct 02 '24 12:10 yujonglee