Endon.update
You're seeing just the function
update
, go back to Endon module for more information.
Specs
update(Ecto.Schema.t(), keyword() | map()) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Update a record in the data store.
The struct
must be a Ecto.Schema.t/0
(your module that uses Ecto.Schema
).
params
can be either a Keyword
list or Map
of attributes and values.
Returns {:ok, struct}
if one is created, or {:error, changeset}
if there is
a validation error.