Hi, I am using custom data class(Address) in mutat...
# kgraphql
t
Hi, I am using custom data class(Address) in mutation input an got this error:
Copy code
Introspection must provide output type for fields, but received: Address!.
Used data classes:
Copy code
data class Address(
    val label: String? = null,
    val street: String? = null,
    val city: String? = null,
)
data class ChangeAddress(
    val userid:Id,
    val address: Address,
)
Mutation is defined like this:
Copy code
mutation("changeAddress") {
    resolver { input: ChangeAddress, context: Context ->
        // change the addresss.....            
    }
}
What could be the problem?
Solved.. It was caused by using the same data class in type and input type.
­čĹŹ 1