-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GRAPHQL):[Breaking] Don't generate get query on interface if it d…
…oesn't have field of type ID and also disallow get query on field of type @id in inerface. (#7158) (#7305) Fixes GRAPHQL-886 We were allowing get query on the field of type @id on the interface type. This causes an error in cases when interface is implemented by multiple types and they try to have same value for field of type @id. To resolve this we are disallowing get query on the interface if it doesn't have a field of type ID , and if we have both fields of type ID and @id then we don't allow get query on the field of type @id. (cherry picked from commit 96b1fa5)
- Loading branch information
1 parent
32557ec
commit 23e45d9
Showing
4 changed files
with
368 additions
and
8 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
5 changes: 5 additions & 0 deletions
5
graphql/schema/testdata/schemagen/input/interface-with-id-directive-and-ID-field.graphql
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,5 @@ | ||
interface Student { | ||
rollNo: String! @id | ||
regNo: ID! | ||
name: String! | ||
} |
Oops, something went wrong.