aPureBase / KGraphQL

Pure Kotlin GraphQL implementation
https://kgraphql.io
MIT License
307 stars 58 forks source link

Unable to use class that inherits from an interface as an inputType #199

Open funyin opened 2 years ago

funyin commented 2 years ago

I noticed that when I use the following class(Dessert) an inputType the playground auto-complete and documentation stopped working. But queries still executed as expected

data class Dessert(
    override val _id: String, var name: String,
    var description: String, var imageUrl: String
) : Model

interface Model {
    val _id:String
}

//  in schema
inputType<Dessert> {
        description = "Dessert object to be updated"
    }

image