We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConfiguringObjectMapperProvider explicitly inject ObjectMapper to the ObjectMapper: https://github.com/graphql-java-kickstart/graphql-java-servlet/blob/master/src/main/java/graphql/servlet/ConfiguringObjectMapperProvider.java#L27 Which is used in VariablesDeserializer: https://github.com/graphql-java-kickstart/graphql-java-servlet/blob/master/src/main/java/graphql/servlet/internal/VariablesDeserializer.java#L18
ConfiguringObjectMapperProvider
ObjectMapper
VariablesDeserializer
Checked Jackson 2 API, this is not needed by using ObjectCodec API (abstract class of ObjectMapper) which can achieve the same goal. Example (Before):
objectMapper.readValue(str, typeReference);
(After):
objectCodec.readValue(objectCodec.getFactory().createParser(str), typeReference);
The text was updated successfully, but these errors were encountered:
graphql-java-kickstart#177 Avoid explicitly inject ObjectMapper to th…
382936f
…e ObjectMapper
Merge pull request #178 from sammyhk/avoid-explicitly-inject-objectma…
30780ce
…pper #177 Avoid explicitly inject ObjectMapper to the ObjectMapper
No branches or pull requests
ConfiguringObjectMapperProvider
explicitly injectObjectMapper
to the ObjectMapper:https://github.com/graphql-java-kickstart/graphql-java-servlet/blob/master/src/main/java/graphql/servlet/ConfiguringObjectMapperProvider.java#L27
Which is used in
VariablesDeserializer
:https://github.com/graphql-java-kickstart/graphql-java-servlet/blob/master/src/main/java/graphql/servlet/internal/VariablesDeserializer.java#L18
Checked Jackson 2 API, this is not needed by using ObjectCodec API (abstract class of ObjectMapper) which can achieve the same goal.
Example (Before):
(After):
The text was updated successfully, but these errors were encountered: