Endon.fetch

You're seeing just the function fetch, go back to Endon module for more information.
Link to this function

fetch(id_or_ids, opts \\ [])

View Source

Specs

fetch(integer() | [integer()], keyword()) ::
  {:ok, [Ecto.Schema.t()]} | {:ok, Ecto.Schema.t()} | :error

Fetches one or more structs from the data store based on the primary key(s) given.

If one primary key is given, then one struct will be returned (or :error if not found)

If more than one primary key is given in a list, then all of the structs with those ids will be returned (and :error will be returned if any one of the primary keys can't be found).

Options