Class GraphQLScalarUtils

java.lang.Object
graphql.kickstart.autoconfigure.scalars.GraphQLScalarUtils

public final class GraphQLScalarUtils extends Object
  • Constructor Details

    • GraphQLScalarUtils

      public GraphQLScalarUtils()
  • Method Details

    • extractScalarDefinitions

      public static Map<String,graphql.schema.GraphQLScalarType> extractScalarDefinitions(Class<?>... classes)
      Extract scalar field definitions from helper classes. Public static GraphQLScalarType fields are considered as scalar definitions.
      Parameters:
      classes - classes that may contain scalar definitions.
      Returns:
      the map of scalar definitions (keys = scalar names, values are scalar type definitions). May return an empty map if no definitions found. If multiple source classes define GraphQL scalar types with the same definition, then the last one will be included in the map.