The entire scalar coercion implementation has to change, because:
a) graphql-java deprecated the methods SPQR is currently using (e.g. parseValue(Object)) and the new signatures cause problems in ValueMapper, which also operates outside of query execution and thus has no access to GraphQLContext
b) SPQR can't reliably tell a Java type is mapped as scalar when deserializing the inputs, so flimsy workarounds like this are needed
The entire scalar coercion implementation has to change, because:
a) graphql-java deprecated the methods SPQR is currently using (e.g.
parseValue(Object)
) and the new signatures cause problems inValueMapper
, which also operates outside of query execution and thus has no access toGraphQLContext
b) SPQR can't reliably tell a Java type is mapped as scalar when deserializing the inputs, so flimsy workarounds like this are needed