Not being able to add directives to an existing field definition has been a growing pain point in Apollo Kotlin. This RFC solves that.
See #952 for the initial use case
Current status
Object type extensions may extend existing fields.
In this example, we deprecate the field id on type Query by adding a
@deprecated directive:
type Query {
id: String
}
extend type Query {
id: String @deprecated(reason: "Use newId")
}
Open questions
- Are extensions a merge? Or just additive?
Not being able to add directives to an existing field definition has been a growing pain point in Apollo Kotlin. This RFC solves that.
See #952 for the initial use case
Current status
Object type extensions may extend existing fields.
In this example, we deprecate the field
idon typeQueryby adding a@deprecateddirective:Open questions