Hello.
What is the resource key in AshPhoenix.Form.for_create supposed to be for a nested key of a union type? As in:
AshPhoenix.Form.for_create(ParentModule, :create, api: MyDomain.Api, forms: [
sub_field: [
type: :list,
resource: ChildModule,
create_action: :create,
]
]
]))
I tried using the union type itself and (rightly?) got a ChildModule.__struct__/0 is undefined or private error.
For more context:
- I’m trying to react to an event with
AshPhoenix.Form.add_formso I need the resource key - I guessed at using
AshPhoenix.Form.WrappedValueand got some other error further down the road - I’m not yet on Ash 3.0
Please, help.




















