Skip to content

Field extensions: spec edits#1196

Draft
egoodwinx wants to merge 9 commits intographql:mainfrom
egoodwinx:field-extension
Draft

Field extensions: spec edits#1196
egoodwinx wants to merge 9 commits intographql:mainfrom
egoodwinx:field-extension

Conversation

@egoodwinx
Copy link

@egoodwinx egoodwinx commented Oct 8, 2025

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 8, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@netlify
Copy link

netlify bot commented Oct 8, 2025

Deploy Preview for graphql-spec-draft ready!

Name Link
🔨 Latest commit 2645e07
🔍 Latest deploy log https://app.netlify.com/projects/graphql-spec-draft/deploys/6981477a04b74900083dd4b7
😎 Deploy Preview https://deploy-preview-1196--graphql-spec-draft.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@martinbonnin martinbonnin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! Few comments below

Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little editorial

@martinbonnin martinbonnin changed the title add initial outline for field extensions Add initial outline for field extensions Jan 26, 2026
@martinbonnin martinbonnin added the 💭 Strawman (RFC 0) RFC Stage 0 (See CONTRIBUTING.md) label Jan 26, 2026
@martinbonnin martinbonnin changed the title Add initial outline for field extensions Field extensions: spec edits Jan 26, 2026
@martinbonnin martinbonnin removed the 💭 Strawman (RFC 0) RFC Stage 0 (See CONTRIBUTING.md) label Jan 26, 2026
Copy link
Contributor

@mjmahone mjmahone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the biggest thing I'd say is that we should be explicit that we're making extend mean merge: at each level it's OK for something to be missing in the extend, in which case that means we use the original value if any, but if it exists on both it must be exactly matching.

```

```graphql example
extend type Query {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this world, extend is a keyword for merge?

two fields may share the same name.
2. If a field with the same name exists on the previous Object type:
1. The field type must match the previous definition exactly.
2. The field description must match the previous definition exactly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or be empty. It would be really annoying to not be able to extend a field because I chose not to add the description.

Copy link
Author

@egoodwinx egoodwinx Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree this should be the intended outcome.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants