Class ScalarInfo

java.lang.Object
graphql.schema.idl.ScalarInfo

@PublicApi @NullMarked public class ScalarInfo extends Object
Info on all the standard scalar objects provided by graphql-java
  • Field Details

    • GRAPHQL_SPECIFICATION_SCALARS

      public static final List<GraphQLScalarType> GRAPHQL_SPECIFICATION_SCALARS
      A list of the built-in scalar types as defined by the graphql specification
    • GRAPHQL_SPECIFICATION_SCALARS_DEFINITIONS

      public static final Map<String,ScalarTypeDefinition> GRAPHQL_SPECIFICATION_SCALARS_DEFINITIONS
      A map of scalar type definitions provided by graphql-java
  • Constructor Details

    • ScalarInfo

      public ScalarInfo()
  • Method Details

    • isGraphqlSpecifiedScalar

      public static boolean isGraphqlSpecifiedScalar(String scalarTypeName)
      Returns true if the scalar type is a scalar that is specified by the graphql specification
      Parameters:
      scalarTypeName - the name of the scalar type in question
      Returns:
      true if the scalar type is specified by the graphql specification
    • isGraphqlSpecifiedScalar

      public static boolean isGraphqlSpecifiedScalar(GraphQLScalarType scalarType)
      Returns true if the scalar type is a scalar that is specified by the graphql specification
      Parameters:
      scalarType - the type in question
      Returns:
      true if the scalar type is specified by the graphql specification