Class ConnectionTypeDefinitionConfigurer
java.lang.Object
org.springframework.graphql.execution.ConnectionTypeDefinitionConfigurer
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(TypeDefinitionRegistry registry) Customize the givenTypeDefinitionRegistry.
-
Constructor Details
-
ConnectionTypeDefinitionConfigurer
public ConnectionTypeDefinitionConfigurer()
-
-
Method Details
-
configure
Description copied from interface:TypeDefinitionConfigurerCustomize the givenTypeDefinitionRegistry.- Specified by:
configurein interfaceTypeDefinitionConfigurer- Parameters:
registry- the registry to customize
-