We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f227dd commit 9464cc7Copy full SHA for 9464cc7
graphql/src/main/kotlin/nl/nlportal/graphql/customtype/JSON.kt
@@ -30,7 +30,7 @@ import graphql.schema.CoercingParseLiteralException
30
import graphql.schema.CoercingSerializeException
31
import graphql.schema.GraphQLScalarType
32
import nl.nlportal.core.util.Mapper
33
-import java.util.*
+import java.util.Locale
34
35
object JSONCoercing : Coercing<ObjectNode, ObjectNode> {
36
override fun parseValue(
@@ -55,7 +55,7 @@ object JSONCoercing : Coercing<ObjectNode, ObjectNode> {
55
variables: CoercedVariables,
56
graphQLContext: GraphQLContext,
57
locale: Locale,
58
- ): ObjectNode? {
+ ): ObjectNode {
59
val jsonString = (input as? ObjectValue)!!
60
return runCatching {
61
parseValue(input, graphQLContext, locale)
0 commit comments