@@ -14,10 +14,14 @@ import type { Source } from '../language/source.js';
14
14
15
15
import type {
16
16
GraphQLArgument ,
17
+ GraphQLEnumType ,
17
18
GraphQLEnumValue ,
18
19
GraphQLField ,
19
20
GraphQLInputField ,
21
+ GraphQLInputObjectType ,
22
+ GraphQLInterfaceType ,
20
23
GraphQLNamedType ,
24
+ GraphQLObjectType ,
21
25
} from '../type/definition.js' ;
22
26
import {
23
27
isEnumType ,
@@ -38,25 +42,25 @@ export interface ResolvedNamedType {
38
42
39
43
export interface ResolvedField {
40
44
readonly kind : 'Field' ;
41
- readonly type : GraphQLNamedType ;
45
+ readonly type : GraphQLObjectType | GraphQLInterfaceType ;
42
46
readonly field : GraphQLField < unknown , unknown > ;
43
47
}
44
48
45
49
export interface ResolvedInputField {
46
50
readonly kind : 'InputField' ;
47
- readonly type : GraphQLNamedType ;
51
+ readonly type : GraphQLInputObjectType ;
48
52
readonly inputField : GraphQLInputField ;
49
53
}
50
54
51
55
export interface ResolvedEnumValue {
52
56
readonly kind : 'EnumValue' ;
53
- readonly type : GraphQLNamedType ;
57
+ readonly type : GraphQLEnumType ;
54
58
readonly enumValue : GraphQLEnumValue ;
55
59
}
56
60
57
61
export interface ResolvedFieldArgument {
58
62
readonly kind : 'FieldArgument' ;
59
- readonly type : GraphQLNamedType ;
63
+ readonly type : GraphQLObjectType | GraphQLInterfaceType ;
60
64
readonly field : GraphQLField < unknown , unknown > ;
61
65
readonly fieldArgument : GraphQLArgument ;
62
66
}
@@ -83,8 +87,10 @@ export type ResolvedSchemaElement =
83
87
84
88
/**
85
89
* A schema coordinate is resolved in the context of a GraphQL schema to
86
- * uniquely identifies a schema element. It returns undefined if the schema
87
- * coordinate does not resolve to a schema element.
90
+ * uniquely identify a schema element. It returns undefined if the schema
91
+ * coordinate does not resolve to a schema element, meta-field, or introspection
92
+ * schema element. It will throw if the containing schema element (if
93
+ * applicable) does not exist.
88
94
*
89
95
* https://spec.graphql.org/draft/#sec-Schema-Coordinates.Semantics
90
96
*/
0 commit comments