Following #42, if a type or an input does not have a matching pair, we need to add the @GraphQLValidObjectLocations annotation with the corresponding input or output location.
Given
type MyType {
myField: String
}
input MyInput {
myField: String
}
generate
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.OBJECT])
data class MyType(
myField: String? = null
)
@GraphQLValidObjectLocations(locations = [GraphQLValidObjectLocations.Locations.INPUT_OBJECT])
data class MyInput(
myField: String? = null
)