close

Filter

Headless Server Developer Manual / Version 2412.0
Table Of Contents

Headless Server offers optional Apollo Federation Support for GraphQL. To enable Federation Support add this library to your maven dependencies.

  <dependency>
    <groupId>com.apollographql.federation</groupId>
    <artifactId>federation-graphql-java-support</artifactId>
    <scope>runtime</scope>
  </dependency>

During server start the library will be detected and federation support will be enabled. The log will show an additional info level message at server start, that federation support is active.

To test that federation support is in fact working, the enhanced introspection can be queried like this:

  query {
    _service {
      sdl
    }
  }

For more details about the federation support please see the original documentation about the integration on the net at Spring-GraphQL. About GraphQL federation in general please refer to the original documentation at Apollo GraphQL.

Was this article useful?

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.