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_web/schema/person.ex

28 lines
719 B
Elixir
Raw Normal View History

defmodule FacesWeb.Schema.Person do
use Absinthe.Schema.Notation
@desc "A person whose face we want to see"
object :person do
@desc "A unique identifier for this person"
field(:id, :id)
@desc "The person's Github username"
field(:username, :string)
@desc "The person's name as per Github"
field(:name, :string)
@desc "The person's location as per Github"
field(:location, :string)
@desc "The URL of the person's Github avatar image"
field(:avatar_url, :string)
@desc "When this user was first imported into the faces app"
field(:inserted_at, :datetime)
@desc "When this user was last updated in the faces app"
field(:updated_at, :datetime)
end
end