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 registered GraphQLScalarType for this GraphQL CustomScalar.
    void registerAllGraphQLScalarType()
    This method registers all GraphQLScalarType that are declared as Spring Component.
    void registerGraphQLScalarType​(graphql.schema.GraphQLScalarType graphQLScalarType)
    Manually register one GraphQLScalarType.
  • Method Details

    • registerAllGraphQLScalarType

      void registerAllGraphQLScalarType()
      This method registers all GraphQLScalarType that are declared as Spring Component. Another way to register GraphQLScalarType is to call the registerGraphQLScalarType(GraphQLScalarType).
    • registerGraphQLScalarType

      void registerGraphQLScalarType​(graphql.schema.GraphQLScalarType graphQLScalarType)
      Manually register one GraphQLScalarType.
      Parameters:
      graphQLScalarType -
    • getGraphQLScalarType

      graphql.schema.GraphQLScalarType getGraphQLScalarType​(java.lang.String graphQLTypeName)
      Retrieves the registered GraphQLScalarType for this GraphQL CustomScalar.
      Parameters:
      graphQLTypeName -
      Returns:
      the GraphQLScalarType, or null if no converter has been registered for the given name