Current section

Files

Jump to
absinthe lib absinthe phase document override_root.ex
Raw

lib/absinthe/phase/document/override_root.ex

defmodule Absinthe.Phase.Document.OverrideRoot do
@moduledoc false
@behaviour Absinthe.Phase
def run(blueprint, root_value: new_root) do
{:ok, put_in(blueprint.execution.root_value, new_root)}
end
end