Jilles van Gurp
07/28/2021, 7:35 AMShane Myrick
07/28/2021, 8:01 PMJilles van Gurp
08/01/2021, 9:37 AMcould not find com.expediagroup:graphql-kotlin-spring-server:5.0.0-alpha.2
With alpha0 I get similar errors as earlier. I assume this has to do with language changes in 1.5. I can try again if you fix the release jars for alpha2 or a new alpha3.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schema' defined in class path resource [com/expediagroup/graphql/server/spring/NonFederatedSchemaAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'schema' threw exception; nested exception is com.expediagroup.graphql.generator.exceptions.InvalidInputFieldTypeException: Argument cannot be an interface or a union, parameter #2 output of fun com.tryformation.graphqlapi.indooratlas.IAPoint.`write$Self`(com.tryformation.graphqlapi.indooratlas.IAPoint, kotlinx.serialization.encoding.CompositeEncoder, kotlinx.serialization.descriptors.SerialDescriptor): kotlin.Unit
Dariusz Kuc
08/01/2021, 4:19 PMalpha.1
and alpha.2
failed to release due to dokka dependency, I just kicked off alpha.3
5.0.0-alpha.3
was just releasedkotlinx.serialization
and spring
- it looks like it complains about the CompositeEncoder
(and will be complaining about SerialDescriptor
) argument to the write$Self
function -> should that function be exposed in the graph at all?Jilles van Gurp
08/02/2021, 12:42 PM@Serializable
data class IAPoint(val lat: Double, val lon: Double)
Dariusz Kuc
08/02/2021, 2:12 PMkotlinx.serialization
uses compiler plugin to generate the classes my guess is graphql-kotlin
picks those autogenerated methods (through reflection) while building a schema, unsure if there is an easy way to skip those.Jilles van Gurp
08/03/2021, 2:59 PMSchemaGeneratorHooks
override fun isValidFunction(kClass: KClass<*>, function: KFunction<*>): Boolean {
return if(function.name == "write\$Self")
// generated by kotlinx serialization
false
else
super.isValidFunction(kClass, function)
}e