Package se.l4.graphql.binding.resolver
Interface GraphQLScalarResolver<Type,GraphQLType>
- Type Parameters:
PrimitiveType
-Type
-
- All Superinterfaces:
GraphQLResolver
public interface GraphQLScalarResolver<Type,GraphQLType> extends GraphQLResolver
Interface that can be used to implement a custom GraphQL scalar.
-
Method Summary
Modifier and Type Method Description Type
parseValue(GraphQLType input)
Parse a value turning it into the type.GraphQLType
serialize(Type instance)
Serialize the specified instance into a GraphQL type.
-
Method Details
-
serialize
Serialize the specified instance into a GraphQL type.- Parameters:
instance
-- Returns:
-
parseValue
Parse a value turning it into the type.- Parameters:
input
-- Returns:
-