Packages
Subscription support via Phoenix for Absinthe, the GraphQL implementation for Elixir.
Current section
Files
Jump to
Current section
Files
lib/absinthe/phoenix/controller/blueprint.ex
defmodule Absinthe.Phoenix.Controller.Blueprint do
@moduledoc false
# make sure to set values on blueprint
def run(blueprint, options) do
context = Map.merge(blueprint.execution.context, options[:context] || %{})
blueprint = put_in(blueprint.execution.context, context)
root_value = Map.merge(blueprint.execution.root_value, options[:root_value] || %{})
blueprint = put_in(blueprint.execution.root_value, root_value)
{:ok, blueprint}
end
end