@@ -256,61 +256,61 @@ Schema extensions have the potential to be invalid if incorrectly defined.
256
256
Schema Coordinates are human readable strings that uniquely identify a specific
257
257
type, field, argument, enum value, or directive defined in a GraphQL Schema.
258
258
259
- ** Definition**
260
-
261
- SchemaCoordinate:
259
+ SchemaCoordinate :
262
260
- Name
263
261
- Name . Name
264
262
- Name . Name ( Name : )
265
263
- @ Name
266
264
- @ Name ( Name : )
267
265
268
- Note: The ` SchemaCoordinate ` syntax is not part of a GraphQL Document. Schema
269
- Coordinates are a separate syntax, intended to be used by tooling when
270
- referencing types and fields or other schema elements. (For example, a server
271
- that wishes to keep track of the number of times fields have been accessed may
272
- use their Schema Coordinate as the lookup key.)
266
+ Note: A {SchemaCoordinate} is not a definition within a GraphQL {Document}.
267
+ Schema coordinates are a separate syntax, intended to be used by tools to
268
+ reference types and fields or other schema elements. For example: within
269
+ documentation, or as lookup keys a service uses to track usage frequency.
273
270
274
271
** Semantics**
275
272
276
- SchemaCoordinate: Name
273
+ A schema coordinate's semantics assume they are interpreted in the context of
274
+ a single GraphQL {schema}.
275
+
276
+ SchemaCoordinate : Name
277
277
1 . Let {typeName} be the value of the first {Name}.
278
- 2 . Return the type in the schema named {typeName}.
278
+ 2 . Return the type in the { schema} named {typeName}.
279
279
280
- SchemaCoordinate: Name . Name
280
+ SchemaCoordinate : Name . Name
281
281
1 . Let {typeName} be the value of the first {Name}.
282
- 2 . Let {type} be the type in the schema named {typeName}.
282
+ 2 . Let {type} be the type in the { schema} named {typeName}.
283
283
3 . If {type} is an Enum type:
284
284
1 . Let {enumValueName} be the value of the second {Name}.
285
285
2 . Return the enum value of {type} named {enumValueName}.
286
286
4 . Otherwise if {type} is an Input Object type:
287
287
1 . Let {inputFieldName} be the value of the second {Name}.
288
288
2 . Return the input field of {type} named {inputFieldName}.
289
289
5 . Otherwise:
290
- 1 . Assert: {type} must be an Object or Interface type.
290
+ 1 . Assert {type} must be an Object or Interface type.
291
291
2 . Let {fieldName} be the value of the second {Name}.
292
292
3 . Return the field of {type} named {fieldName}.
293
-
294
- SchemaCoordinate: Name . Name ( Name : )
293
+
294
+ SchemaCoordinate : Name . Name ( Name : )
295
295
1 . Let {typeName} be the value of the first {Name}.
296
- 2 . Let {type} be the type in the schema named {typeName}.
297
- 3 . Assert: {type} must be an Object or Interface type.
296
+ 2 . Let {type} be the type in the { schema} named {typeName}.
297
+ 3 . Assert {type} must be an Object or Interface type.
298
298
4 . Let {fieldName} be the value of the second {Name}.
299
299
5 . Let {field} be the field of {type} named {fieldName}.
300
- 6 . Assert: {field} must exist.
300
+ 6 . Assert {field} must exist.
301
301
7 . Let {argumentName} be the value of the third {Name}.
302
302
8 . Return the argument of {field} named {argumentName}.
303
303
304
- SchemaCoordinate: @ Name
304
+ SchemaCoordinate : @ Name
305
305
1 . Let {directiveName} be the value of the first {Name}.
306
- 2 . Return the directive in the schema named {directiveName}.
306
+ 2 . Return the directive in the { schema} named {directiveName}.
307
307
308
- SchemaCoordinate: @ Name ( Name : )
308
+ SchemaCoordinate : @ Name ( Name : )
309
309
1 . Let {directiveName} be the value of the first {Name}.
310
- 2 . Let {directive} be the directive in the schema named {directiveName}.
311
- 3 . Assert: {directive} must exist.
310
+ 2 . Let {directive} be the directive in the { schema} named {directiveName}.
311
+ 3 . Assert {directive} must exist.
312
312
7 . Let {argumentName} be the value of the second {Name}.
313
- 8 . Return the argument of {directive} named {argumentName}
313
+ 8 . Return the argument of {directive} named {argumentName}.
314
314
315
315
** Examples**
316
316
0 commit comments