Interface CustomScalarRegistry
- All Known Implementing Classes:
CustomScalarRegistryImpl
public interface CustomScalarRegistry
Registry for all
GraphQLScalarType
available.- Author:
- etienne-sf
-
Method Summary
Modifier and Type Method Description graphql.schema.GraphQLScalarType
getGraphQLScalarType(java.lang.String graphQLTypeName)
Retrieves the registeredGraphQLScalarType
for this GraphQL CustomScalar.void
registerAllGraphQLScalarType()
This method registers allGraphQLScalarType
that are declared as SpringComponent
.void
registerGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType)
Manually register oneGraphQLScalarType
.
-
Method Details
-
registerAllGraphQLScalarType
void registerAllGraphQLScalarType()This method registers allGraphQLScalarType
that are declared as SpringComponent
. Another way to registerGraphQLScalarType
is to call theregisterGraphQLScalarType(GraphQLScalarType)
. -
registerGraphQLScalarType
void registerGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType)Manually register oneGraphQLScalarType
.- Parameters:
graphQLScalarType
-
-
getGraphQLScalarType
graphql.schema.GraphQLScalarType getGraphQLScalarType(java.lang.String graphQLTypeName)Retrieves the registeredGraphQLScalarType
for this GraphQL CustomScalar.- Parameters:
graphQLTypeName
-- Returns:
- the
GraphQLScalarType
, or null if no converter has been registered for the given name
-