in src/main/java/org/apache/sling/graphql/core/scalars/SlingCoercingWrapper.java [57:70]
public Object parseLiteral(Object input) {
// This is called when parsing objects from the GraphQL Abstract Syntax Tree
// So far we handle StringValue only and unfortunately there's no common
// interface for the getValue() method.
try {
if(input instanceof StringValue) {
return converter.parseValue(((StringValue)input).getValue());
} else {
return converter.parseValue(input);
}
} catch(ScalarConversionException sce) {
throw new CoercingSerializeException(sce);
}
}