Packages

A library for helping you run GraphQL queries against remote GraphQL servers, with the client protections of Absinthe.

Current section

Files

Jump to
absinthe_remote lib absinthe_remote result_phase.ex
Raw

lib/absinthe_remote/result_phase.ex

defmodule AbsintheRemote.ResultPhase do
@moduledoc """
Swaps out Absinthe.Phase.Document.Result for our own AbsintheRemote.Result
"""
@behaviour Absinthe.Phase
alias Absinthe.Phase
@impl Absinthe.Phase
def run(bp, _opts) do
{:swap, bp, Phase.Document.Result, AbsintheRemote.Result}
end
end