AshPhoenix.Form fails in submit without errors with embedded resources
I have a embedded resource like this:
defmodule Marketplace.Markets.Property.OffMarket do @moduledoc false use Ash.Resource, data_layer: :embedded, extensions: [AshGraphql.Resource] code_interface do define_for Marketplace.Markets define :new end attributes do alias Marketplace.Ash.Types.PhoneNumber attribute :agent_name, :string attribute :agent_phone_number, PhoneNumber attribute :company_name, :string, allow_nil?: false attribute :company_phone_number, PhoneNumber end graphql do type :off_market end actions do defaults [:update, :read, :destroy] create :new, primary?: true endend
defmodule Marketplace.Markets.Property.OffMarket do @moduledoc false use Ash.Resource, data_layer: :embedded, extensions: [AshGraphql.Resource] code_interface do define_for Marketplace.Markets define :new end attributes do alias Marketplace.Ash.Types.PhoneNumber attribute :agent_name, :string attribute :agent_phone_number, PhoneNumber attribute :company_name, :string, allow_nil?: false attribute :company_phone_number, PhoneNumber end graphql do type :off_market end actions do defaults [:update, :read, :destroy] create :new, primary?: true endend
This embedded resource is used as an attribute inside my
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.