Skip to content

Commit

Permalink
update introspection and validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-marcacci committed Nov 1, 2017
1 parent 913b244 commit 4fffcd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions spec/Section 4 -- Introspection.md
Expand Up @@ -135,8 +135,6 @@ type __Type {

# OBJECT and INTERFACE only
fields(includeDeprecated: Boolean = false): [__Field!]

# OBJECT only
interfaces: [__Type!]

# INTERFACE and UNION only
Expand Down Expand Up @@ -284,6 +282,7 @@ Fields
* `fields`: The set of fields required by this interface.
* Accepts the argument `includeDeprecated` which defaults to {false}. If
{true}, deprecated fields are also returned.
* `interfaces`: The set of interfaces that an interface implements.
* `possibleTypes` returns the list of types that implement this interface.
They must be object types.
* All other fields must return {null}.
Expand Down
8 changes: 4 additions & 4 deletions spec/Section 5 -- Validation.md
Expand Up @@ -1104,8 +1104,8 @@ fragment catInDogFragmentInvalid on Dog {

##### Abstract Spreads in Object Scope

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

For example

Expand Down Expand Up @@ -1145,8 +1145,8 @@ declaration, not its body.
##### Object Spreads In Abstract Scope

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

For example, the following fragments are valid:

Expand Down

0 comments on commit 4fffcd5

Please sign in to comment.