Skip to content

[RFC] Field extensions #1162

@martinbonnin

Description

@martinbonnin

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions