Current section

Files

Jump to
absinthe lib absinthe phase debug.ex
Raw

lib/absinthe/phase/debug.ex

defmodule Absinthe.Phase.Debug do
use Absinthe.Phase
@moduledoc false
alias Absinthe.Blueprint
@spec run(any, Keyword.t()) :: {:ok, Blueprint.t()}
def run(input, _options \\ []) do
if System.get_env("DEBUG") do
IO.inspect(input, label: :debug_blueprint_output)
end
{:ok, input}
end
end