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
2018-04-08 10:06:11 +12:00

23 lines
359 B
Elixir

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