# `Diffo.Provider.Changes.Assign`
[🔗](https://github.com/diffo-dev/diffo/blob/v0.9.0/lib/diffo/provider/changes/assign.ex#L5)

After-action change for the standard `:assign_*` pattern.

Performs an assignment for the named pool via `Assigner.assign/3`, then
reloads the result via the resource's primary `:read` action.

## Usage

    update :assign_port do
      argument :assignment, :struct, constraints: [instance_of: Assignment]
      change {Diffo.Provider.Changes.Assign, pool: :ports}
    end

## Options

- `:pool` (required) — the pool name (atom) declared via `pools do` on the
  consuming instance resource.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
