-
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): fix introspection completion bug (#6385)
Fixes GRAPHQL-673. This PR fixes the issue where introspection queries would break if there were two types implementing same interface and having fields with same name in those two types and that repeating field is also a field in introspection query. This was introduced after #6228.
- Loading branch information
1 parent
41c2052
commit 243a336
Showing
4 changed files
with
161 additions
and
119 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
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
113 changes: 113 additions & 0 deletions
113
graphql/schema/testdata/introspection/input/full_query.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,113 @@ | ||
query { | ||
__schema { | ||
__typename | ||
queryType { | ||
name | ||
__typename | ||
} | ||
mutationType { | ||
name | ||
__typename | ||
} | ||
subscriptionType { | ||
name | ||
__typename | ||
} | ||
types { | ||
...FullType | ||
} | ||
directives { | ||
__typename | ||
name | ||
locations | ||
args { | ||
...InputValue | ||
} | ||
} | ||
} | ||
} | ||
fragment FullType on __Type { | ||
kind | ||
name | ||
fields(includeDeprecated: true) { | ||
__typename | ||
name | ||
args { | ||
...InputValue | ||
__typename | ||
} | ||
type { | ||
...TypeRef | ||
__typename | ||
} | ||
isDeprecated | ||
deprecationReason | ||
} | ||
inputFields { | ||
...InputValue | ||
__typename | ||
} | ||
interfaces { | ||
...TypeRef | ||
__typename | ||
} | ||
enumValues(includeDeprecated: true) { | ||
name | ||
isDeprecated | ||
deprecationReason | ||
__typename | ||
} | ||
possibleTypes { | ||
...TypeRef | ||
__typename | ||
} | ||
__typename | ||
} | ||
fragment InputValue on __InputValue { | ||
__typename | ||
name | ||
type { | ||
...TypeRef | ||
} | ||
defaultValue | ||
} | ||
fragment TypeRef on __Type { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
ofType { | ||
kind | ||
name | ||
__typename | ||
} | ||
__typename | ||
} | ||
__typename | ||
} | ||
__typename | ||
} | ||
__typename | ||
} | ||
__typename | ||
} | ||
__typename | ||
} | ||
__typename | ||
} |
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