Skip to content

fix: strip @external fields in interface extensions#2848

Merged
JakeDawkins merged 3 commits intoapollographql:masterfrom
lennyburdette:external-directives-interface
Jun 17, 2019
Merged

fix: strip @external fields in interface extensions#2848
JakeDawkins merged 3 commits intoapollographql:masterfrom
lennyburdette:external-directives-interface

Conversation

@lennyburdette
Copy link
Copy Markdown
Contributor

Before this change, including an external field in an interface
extension would fail composition in the gateway with an error:

Field "Product.id" already exists in the schema. It cannot also be defined in this type extension.

@apollo-cla
Copy link
Copy Markdown

@lennyburdette: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

Copy link
Copy Markdown
Contributor

@JakeDawkins JakeDawkins left a comment

Choose a reason for hiding this comment

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

Thanks so much! Just one slight change, and should be good to go 👍

Comment thread packages/apollo-federation/src/composition/utils.ts Outdated
Before this change, including an external field in an interface
extension would fail composition in the gateway with an error:

```
Field "Product.id" already exists in the schema. It cannot also be defined in this type extension.
```
@lennyburdette lennyburdette force-pushed the external-directives-interface branch from ffabb64 to b61239e Compare June 14, 2019 19:31
@JakeDawkins JakeDawkins merged commit c883224 into apollographql:master Jun 17, 2019
abernix pushed a commit to apollographql/federation that referenced this pull request Sep 4, 2020
…ollo-server#2848)

Before this change, including an external field in an interface
extension would fail composition in the gateway with an error:

```
Field "Product.id" already exists in the schema. It cannot also be defined in this type extension.
```
Apollo-Orig-Commit-AS: apollographql/apollo-server@c883224
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants