Annotation Type GraphQLScalar
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface GraphQLScalar
Annotation used to mark a class or interface that should become a scalar
type. This is equivalent to registering the scalar via
GraphQLBinder#withScalar(Class, GraphQLScalarResolver)
.-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends GraphQLScalarResolver<?,?>>
value
The resolver to use for this scalar.
-
Element Details
-
value
Class<? extends GraphQLScalarResolver<?,?>> valueThe resolver to use for this scalar. This will be automatically constructed and applied for this scalar.
-