Class GraphQLScalarUtils
java.lang.Object
graphql.kickstart.autoconfigure.scalars.GraphQLScalarUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractScalarDefinitions(Class<?>... classes) Extract scalar field definitions from helper classes.
-
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 staticGraphQLScalarTypefields 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.
-