Skip to content

Field extensions #1162

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions