Current section

Files

Jump to
absinthe lib absinthe execution resolution scalar.ex
Raw

lib/absinthe/execution/resolution/scalar.ex

defimpl Absinthe.Execution.Resolution, for: Absinthe.Type.Scalar do
def resolve(%{serialize: serialize}, %{resolution: %{target: target}} = execution) do
{:ok, serialize.(target), execution}
end
end