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

After-action change for the standard `:relate` pattern.

Creates relationships from the `:relationships` argument on the changeset via
`Relationship.relate_instance/2`, then reloads the result via the resource's
primary `:read` action.

## Usage

    update :relate do
      argument :relationships, {:array, :struct}
      change Diffo.Provider.Changes.Relate
    end

---

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