-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generating misleading "value type" hint on entity interfaces (#2412)
The code that generates the `INCONSISTENT_INTERFACE_VALUE_TYPE_FIELD` was run inconditionally on all interfaces. However, with the introduction of `@interfaceObject` and `@key` on interfaces, we now essentially support "entity" interfaces, and it is misleading to generate this hint for those interfaces. This commit fixes that. Fixes #2397
- Loading branch information
Sylvain Lebresne
committed
Feb 22, 2023
1 parent
4ebaf10
commit 71a07f3
Showing
3 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@apollo/composition": patch | ||
--- | ||
|
||
Stop generating misleading "hint" regarding value type fields for interface types that are entity interfaces (they have a `@key` defined). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters