This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
graphql-lightning-talk/lib/faces/gallery/gallery.ex

24 lines
359 B
Elixir
Raw Normal View History

defmodule Faces.Gallery do
@moduledoc """
The Gallery context.
"""
alias Faces.Repo
2018-04-08 10:06:11 +12:00
alias Faces.Gallery.{Person, Importer}
@doc """
Returns the list of people.
## Examples
iex> list_people()
[%Person{}, ...]
"""
def list_people do
Repo.all(Person)
end
2018-04-08 10:06:11 +12:00
def import_user(username), do: Importer.import(username)
end