debianize-mobilizon/lib/mobilizon_web/schema/sort.ex
Thomas Citharel f08b6334f0
Add @moduledoc to new module
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-05 10:41:23 +01:00

13 lines
244 B
Elixir

defmodule MobilizonWeb.Schema.SortType do
@moduledoc """
Allows sorting a collection of elements
"""
use Absinthe.Schema.Notation
@desc "Available sort directions"
enum :sort_direction do
value(:asc)
value(:desc)
end
end