2019-03-01 10:41:28 +00:00
|
|
|
defmodule MobilizonWeb.Schema.SortType do
|
2019-03-05 09:30:50 +00:00
|
|
|
@moduledoc """
|
|
|
|
Allows sorting a collection of elements
|
|
|
|
"""
|
2019-03-01 10:41:28 +00:00
|
|
|
use Absinthe.Schema.Notation
|
|
|
|
|
|
|
|
@desc "Available sort directions"
|
|
|
|
enum :sort_direction do
|
|
|
|
value(:asc)
|
|
|
|
value(:desc)
|
|
|
|
end
|
|
|
|
end
|