Class ConnectionTypeDefinitionConfigurer

java.lang.Object
org.springframework.graphql.execution.ConnectionTypeDefinitionConfigurer
All Implemented Interfaces:
TypeDefinitionConfigurer

public class ConnectionTypeDefinitionConfigurer extends Object implements TypeDefinitionConfigurer
TypeDefinitionConfigurer that generates "Connection" types by looking for fields whose type definition name ends in "Connection", considered by the GraphQL Cursor Connections Specification to be a Connection Type, and adding the required type definitions if they don't already exist.

This is intended to be set on GraphQlSource.Builder.

Since:
1.2.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • ConnectionTypeDefinitionConfigurer

      public ConnectionTypeDefinitionConfigurer()
  • Method Details

    • configure

      public void configure(graphql.schema.idl.TypeDefinitionRegistry registry)
      Description copied from interface: TypeDefinitionConfigurer
      Customize the given TypeDefinitionRegistry.
      Specified by:
      configure in interface TypeDefinitionConfigurer
      Parameters:
      registry - the registry to customize