Split GraphQL as separate context
This commit is contained in:
12
lib/graphql/schema/sort.ex
Normal file
12
lib/graphql/schema/sort.ex
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
value(:desc)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user