Absinthe.Federation.Schema (absinthe_federation v0.2.53) View Source

Module for injecting custom Absinthe.Phases for adding federated types and directives.

Example

defmodule MyApp.MySchema do
  use Absinthe.Schema
+ use Absinthe.Federation.Schema

  query do
    ...
  end
end

Link to this section Summary

Link to this section Functions

Injects custom compile-time Absinthe.Phase

Link to this function

remove_federated_types_pipeline(schema)

View Source

Specs

remove_federated_types_pipeline(schema :: Absinthe.Schema.t()) ::
  Absinthe.Pipeline.t()
Link to this function

to_federated_sdl(schema)

View Source

Specs

to_federated_sdl(schema :: Absinthe.Schema.t()) :: String.t()