Current section

Files

Jump to
absinthe_extra lib absinthe_extra notation policy schema.ex
Raw

lib/absinthe_extra/notation/policy/schema.ex

defmodule AbsintheExtra.Notation.Policy.Schema do
@moduledoc false
alias Absinthe.Resolution
@spec allow(resolution :: Resolution.t()) :: Resolution.t()
def allow(resolution) do
resolution
end
@spec deny(resolution :: Resolution.t()) :: Resolution.t()
def deny(resolution) do
Resolution.put_result(resolution, {:error, :policy_denied})
end
end