File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,11 @@ References the named argument of the named directive.
124
124
For example, consider the following schema:
125
125
126
126
``` graphql
127
+ directive @private (scope : String ! ) on FIELD
128
+
127
129
type Person {
128
130
name : String
131
+ email : String @private (scope : " loggedIn" )
129
132
}
130
133
131
134
type Business {
@@ -138,7 +141,7 @@ type Query {
138
141
}
139
142
```
140
143
141
- We can write the following list of Schema Coordinates :
144
+ We can write the following schema coordinates :
142
145
143
146
- `Person` uniquely identifies the the "Person" type
144
147
- `Business` uniquely identifies the the "Business" type
@@ -150,8 +153,9 @@ We can write the following list of Schema Coordinates:
150
153
the "Query" type
151
154
- `Query.searchBusinesses(name:)` uniquely identifies the "name" argument on the
152
155
"searchBusinesses" field on the "Query" type
153
-
154
- This RFC standardizes how we write coordinates GraphQL Schema members as above .
156
+ - `@private ` uniquely identifies the "private" directive
157
+ - `@private (scope :)` uniquely identifies the "scope" argument on the "private"
158
+ directive
155
159
156
160
## 🎨 Prior art
157
161
You can’t perform that action at this time.
0 commit comments