mobilizon.chapril.org-mobil.../lib/graphql/schema/sort.ex

13 lines
314 B
Elixir
Raw Normal View History

2020-01-26 20:34:25 +01:00
defmodule Mobilizon.GraphQL.Schema.SortType do
@moduledoc """
Allows sorting a collection of elements
"""
2019-03-01 11:41:28 +01:00
use Absinthe.Schema.Notation
@desc "Available sort directions"
enum :sort_direction do
value(:asc, description: "Ascending order")
value(:desc, description: "Descending order")
2019-03-01 11:41:28 +01:00
end
end