aPureBase / KGraphQL

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

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

Open funyin opened 1 year ago

funyin commented 1 year 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