mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +00:00
3eacbb2ca3
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
12 lines
314 B
Elixir
12 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
|