Skip to content

Commit 4fffcd5

Browse files
committed
update introspection and validation
1 parent 913b244 commit 4fffcd5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

spec/Section 4 -- Introspection.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ type __Type {
135135

136136
# OBJECT and INTERFACE only
137137
fields(includeDeprecated: Boolean = false): [__Field!]
138-
139-
# OBJECT only
140138
interfaces: [__Type!]
141139

142140
# INTERFACE and UNION only
@@ -284,6 +282,7 @@ Fields
284282
* `fields`: The set of fields required by this interface.
285283
* Accepts the argument `includeDeprecated` which defaults to {false}. If
286284
{true}, deprecated fields are also returned.
285+
* `interfaces`: The set of interfaces that an interface implements.
287286
* `possibleTypes` returns the list of types that implement this interface.
288287
They must be object types.
289288
* All other fields must return {null}.

spec/Section 5 -- Validation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,8 @@ fragment catInDogFragmentInvalid on Dog {
11041104

11051105
##### Abstract Spreads in Object Scope
11061106

1107-
In scope of an object type, unions or interface spreads can be used
1108-
if the object type implements the interface or is a member of the union.
1107+
In scope of an object or interface type, unions or interface spreads can be
1108+
used if the type implements the interface or is a member of the union.
11091109

11101110
For example
11111111

@@ -1145,8 +1145,8 @@ declaration, not its body.
11451145
##### Object Spreads In Abstract Scope
11461146

11471147
Union or interface spreads can be used within the context of an object type
1148-
fragment, but only if the object type is one of the possible types of
1149-
that interface or union.
1148+
fragment or interface type fragment, but only if the type is one of the
1149+
possible types of that interface or union.
11501150

11511151
For example, the following fragments are valid:
11521152

0 commit comments

Comments
 (0)