View Source Absinthe.Federation (absinthe_federation v0.5.4)

Apollo Federation support for Absinthe.

examples

Examples

Schemas should use Absinthe.Federation.Schema

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

  query do
    ...
  end
end

For a type module, use Absinthe.Federation.Notation instead:

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

end

Link to this section Summary

Link to this section Functions

Link to this function

remove_federated_types_pipeline(schema)

View Source
@spec remove_federated_types_pipeline(schema :: Absinthe.Schema.t()) ::
  Absinthe.Pipeline.t()

See Absinthe.Federation.Schema.remove_federated_types_pipeline/1.

Link to this function

to_federated_sdl(schema)

View Source
@spec to_federated_sdl(schema :: Absinthe.Schema.t()) :: String.t()

See Absinthe.Federation.Schema.to_federated_sdl/1.