close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2301

Table Of Contents

13. Metadata Root

The Metadata Root provides custom metadata for fields. It is configured via a GraphQL schema extension within the file metadata-schema.graphql and implemented in the class MetadataRoot.

The Metadata Root delivers type definitions retrieved via introspection together with their fields. The fields are enriched with metadata information. The following type definitions are supported:

  • InterfaceTypesDefinition
  • ObjectTypesDefinition

Query to retrieve metadata:

{
  metadata {
    types {
      name
      fields {
        name
        metadata
      }
    }
  }
}

Customization

Custom metadata can be added by adding a bean of type MetadataProvider to the Spring context.

Configuration

The Metadata Root can be disabled by setting the property caas.metadata.enabled to false.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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