Ecto.Changeset.fetch_change-exclamation-mark

You're seeing just the function fetch_change-exclamation-mark, go back to Ecto.Changeset module for more information.
Link to this function

fetch_change!(changeset, key)

View Source

Specs

fetch_change!(t(), atom()) :: term()

Same as fetch_change/2 but returns the value or raises if the given key was not found.

Examples

iex> changeset = change(%Post{body: "foo"}, %{title: "bar"})
iex> fetch_change!(changeset, :title)
"bar"
iex> fetch_change!(changeset, :body)
** (KeyError) key :body not found in: %{title: "bar"}