3eacbb2ca3
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
13 lines
314 B
Elixir
13 lines
314 B
Elixir
defmodule Mobilizon.GraphQL.Schema.SortType do
|
|
@moduledoc """
|
|
Allows sorting a collection of elements
|
|
"""
|
|
use Absinthe.Schema.Notation
|
|
|
|
@desc "Available sort directions"
|
|
enum :sort_direction do
|
|
value(:asc, description: "Ascending order")
|
|
value(:desc, description: "Descending order")
|
|
end
|
|
end
|