Skip to content

Commit 153b54f

Browse files
committed
revert back to MemberCoordinates
1 parent 7fb6007 commit 153b54f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

spec/Section 3 -- Type System.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,14 +2254,21 @@ _schema element_ within a GraphQL Schema.
22542254
:: A _schema element_ can be a named type, a field, an input field, an enum
22552255
value, a field argument, a directive, or a directive argument.
22562256

2257+
:: The _containing element_ of a _schema element_ is the schema element with one
2258+
fewer {Name} token that syntactically contains it. Specifically:
2259+
2260+
- {MemberCoordinate} has a {TypeCoordinate} containing element.
2261+
- {ArgumentCoordinate} has a {MemberCoordinate} containing element.
2262+
- {DirectiveArgumentCoordinate} has a {DirectiveCoordinate} containing element.
2263+
- {TypeCoordinate} and {DirectiveCoordinate} have no containing element.
2264+
22572265
A _schema coordinate_ is always unique. Each _schema element_ can be referenced
22582266
by exactly one possible schema coordinate.
22592267

22602268
A _schema coordinate_ may refer to either a defined or built-in _schema
22612269
element_. For example, `String` and `@deprecated(reason:)` are both valid schema
2262-
coordinates which refer to built-in schema elements. However it must not refer
2263-
to a meta-field. For example, `Business.__typename` is _not_ a valid schema
2264-
coordinate.
2270+
coordinates which refer to built-in schema elements. Meta-fields may also be
2271+
referenced. For example, `Business.__typename` is a valid schema coordinate.
22652272

22662273
Note: Union members are not valid _schema coordinate_ as they reference existing
22672274
types in the schema. This preserves the uniqueness property of a _schema

0 commit comments

Comments
 (0)