Skip to content

Commit 9caf719

Browse files
magicmarkbenjie
andauthored
Update rfcs/SchemaCoordinates.md
Co-authored-by: Benjie Gillam <[email protected]>
1 parent 3cd6242 commit 9caf719

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

rfcs/SchemaCoordinates.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,28 @@ _Existing implementations: Apollo Studio (see "Prior Art")_
7373
- There are **no proposed GraphQL runtime changes**
7474
- [Schema coordinate non-goals](#-syntax-non-goals)
7575

76+
## Proposed syntax
77+
78+
### `Type`
79+
80+
Refers to a named type (e.g. something represented by `__Type` in GraphQL introspection).
81+
82+
### `Type.attribute`
83+
84+
Refers to a named attribute on the named type. Not all types support this. For object types and interface types this is a field, for input objects this would be an input field, for enums this would be an enum value, for future GraphQL types this will relate to a related concept if they have one (e.g. for the [proposed "tagged" type](https://github.com/graphql/graphql-spec/pull/733) it would refer to the "member field").
85+
86+
### `Type.field(argName:)`
87+
88+
Refers to a named argument on the named field of the named type.
89+
90+
### `@directive`
91+
92+
References the given named directive
93+
94+
### `@directive(argName:)`
95+
96+
References the named argument of the named directive.
97+
7698
## ✨ Worked Examples
7799

78100
For example, consider the following schema:

0 commit comments

Comments
 (0)