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
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(TypeDefinitionRegistry registry) Customize the givenTypeDefinitionRegistry
.
-
Constructor Details
-
ConnectionTypeDefinitionConfigurer
public ConnectionTypeDefinitionConfigurer()
-
-
Method Details
-
configure
Description copied from interface:TypeDefinitionConfigurer
Customize the givenTypeDefinitionRegistry
.- Specified by:
configure
in interfaceTypeDefinitionConfigurer
- Parameters:
registry
- the registry to customize
-