How to modify pipeline of document in Absinthe?

I want to replace Absinthe.Phase.Document.Arguments.Parse with my custom version.

I can modify the pipelines of schema following this doc (Absinthe.Schema — absinthe v1.6.5), but can’t modify the pipelines of document.
(document means the pipelines of Absinthe.Pipeline.for_document/2)

@nallwhy you do this at the point Absinthe is plugged in eg: the pipeline option to Absinthe.Plug:

plug Absinthe.Plug, pipeline: {__MODULE__, :absinthe_pipeline}

def absinthe_pipeline(config, opts) do
  config
  |> Absinthe.Plug.default_pipeline(opts)
  |> Absinthe.Pipeline.whatever(foo, bar)
end
2 Likes