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.
Specs
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"}