@@ -453,11 +453,11 @@ These two queries are semantically identical:
453
453
454
454
Alias : Name :
455
455
456
- By default, the key in the response object will use the field name
457
- queried . However, you can define a different name by specifying an alias.
456
+ By default a field's response key in the response object will use that field's
457
+ name . However, you can define a different response key by specifying an alias.
458
458
459
459
In this example, we can fetch two profile pictures of different sizes and ensure
460
- the resulting object will not have duplicate keys:
460
+ the resulting response object will not have duplicate keys:
461
461
462
462
``` graphql example
463
463
{
@@ -470,7 +470,7 @@ the resulting object will not have duplicate keys:
470
470
}
471
471
```
472
472
473
- Which returns the result:
473
+ which returns the result:
474
474
475
475
``` json example
476
476
{
@@ -483,7 +483,7 @@ Which returns the result:
483
483
}
484
484
```
485
485
486
- Since the top level of a query is a field, it also can be given an alias:
486
+ The fields at the top level of an operation can also be given an alias:
487
487
488
488
``` graphql example
489
489
{
@@ -494,7 +494,7 @@ Since the top level of a query is a field, it also can be given an alias:
494
494
}
495
495
```
496
496
497
- Returns the result:
497
+ which returns the result:
498
498
499
499
``` json example
500
500
{
@@ -505,9 +505,6 @@ Returns the result:
505
505
}
506
506
```
507
507
508
- A field's response key is its alias if an alias is provided, and it is
509
- otherwise the field's name.
510
-
511
508
512
509
## Fragments
513
510
0 commit comments