Currently our Scalar handling is not correct in several aspects: - `parseLiteral` should return null if it can't be parsed and not throw an Exception. `ArgumentsOfCorrectType` will check that the type is correct. - It is not allowed to throw away some infos when coercing. For example "124.3" is not a valid value for Int. Instead an Error must be thrown. See https://github.com/graphql-java/graphql-java/issues/171 and https://github.com/graphql/graphql-js/issues/827 - NonNull Handling Error: https://github.com/graphql-java/graphql-java/issues/438
Currently our Scalar handling is not correct in several aspects:
parseLiteralshould return null if it can't be parsed and not throw an Exception.ArgumentsOfCorrectTypewill check that the type is correct.It is not allowed to throw away some infos when coercing. For example "124.3" is not a valid value for Int. Instead an Error must be thrown. See Type serialization/coercion not according to the spec #171 and
Intinput value coercion from floating point JSON literal value graphql/graphql-js#827NonNull Handling Error: GraphQLNonNull(GraphQLBoolean) could return null #438