Ecto.Repo.reload-exclamation-mark
You're seeing just the callback
reload-exclamation-mark
, go back to Ecto.Repo module for more information.
Specs
reload!(struct_or_structs, opts :: Keyword.t()) :: struct_or_structs when struct_or_structs: Ecto.Schema.t() | [Ecto.Schema.t()]
Similar to reload/2
, but raises when something is not found.
When using with lists, ordering is guaranteed to be kept.
Example
MyRepo.reload!(post)
%Post{}
MyRepo.reload!([post1, post2])
[%Post{}, %Post{}]