Deprecation
Schema creator is able to deprecate fields, operations, enum values, and input values. DSL builders for those schema
elements expose method deprecate(reason: String)
. Deprecation is visible in schema introspection system with fields
isDeprecated: Boolean
and deprecationReason: String
.
Input values may only be deprecated if they are not required, cf. 3.13.3@deprecated.
Example
data class Sample(val content: String)
type<Sample> {
Sample::content.configure {
deprecate("deprecated property")
}
}