2019-01-14 17:13:17 +01:00
|
|
|
defmodule MobilizonWeb.Schema.Events.CategoryType do
|
2019-01-14 17:48:08 +01:00
|
|
|
@moduledoc """
|
|
|
|
Schema representation for Category
|
|
|
|
"""
|
2019-01-14 17:13:17 +01:00
|
|
|
use Absinthe.Schema.Notation
|
|
|
|
|
|
|
|
@desc "A category"
|
|
|
|
object :category do
|
|
|
|
field(:id, :id, description: "The category's ID")
|
|
|
|
field(:description, :string, description: "The category's description")
|
|
|
|
field(:picture, :picture, description: "The category's picture")
|
|
|
|
field(:title, :string, description: "The category's title")
|
|
|
|
end
|
|
|
|
end
|