Jilles van Gurp
01/14/2021, 7:05 PMCaused by: com.expediagroup.graphql.exceptions.CouldNotCastGraphQLSchemaElement: Could not cast GraphQLSchemaElement GraphQLInterfaceType{name='GeoJsonGeometry', description='null', fieldDefinitionsByName=[type], typeResolver=null} to class graphql.schema.GraphQLInputType
This is the sealed class
sealed class GeoJsonGeometry(val type: GeometryType) {
class Point(type: GeometryType = GeometryType.Point): GeoJsonGeometry(type)
class Polygon(type: GeometryType = GeometryType.Polygon): GeoJsonGeometry(type)
}
Simply adding a val geometry: GeoJsonGeometry?=null
to our input date class breaks it, removing that fixes it.Shane Myrick
01/14/2021, 7:36 PMJilles van Gurp
01/15/2021, 9:42 AMShane Myrick
01/15/2021, 6:08 PM