Endon.create
You're seeing just the function
create
, go back to Endon module for more information.
Specs
create(Ecto.Schema.t() | keyword() | map()) :: {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
Insert a new record into the data store.
params
can be either a Keyword
list, a Map
of attributes and values, or a struct
of the same type being used to invoke create/1
Returns {:ok, struct}
if one is created, or {:error, changeset}
if there is
a validation error.