You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2019. It is now read-only.
It's failing when trying to use scalar types within variables. See example below.
// This test should be in `ScalarsSpecificationTest`
@Test
fun`Scalars within input variables`(){
val schema =KGraphQL.schema {
floatScalar<Dob> {
deserialize = ::Dob
serialize = { (double) -> double }
}
query("double"){
resolver { double :Dob-> double }
}
}
val value =232.33val response = deserialize(schema.execute(
request ="query customQuery(\$var: Dob!){double(double: \$var)}",
variables ="{\"var\": $value}"
))
assertThat(response.extract<Double>("data/double"), equalTo(value))
}
Gives:
com.github.pgutkowski.kgraphql.ExecutionException: Failed to coerce 232.33 as com.github.pgutkowski.kgraphql.specification.typesystem.ScalarsSpecificationTest.Dob
The text was updated successfully, but these errors were encountered:
jeggy
added a commit
to jeggy/KGraphQL
that referenced
this issue
Dec 31, 2018
It's failing when trying to use scalar types within variables. See example below.
Gives:
The text was updated successfully, but these errors were encountered: