@@ -173,7 +173,7 @@ Since the top level of a query is a field, it also can be given an alias:
173
173
``` graphql
174
174
{
175
175
zuck : user (id : 4 ) {
176
- id
176
+ id ,
177
177
name
178
178
}
179
179
}
@@ -283,7 +283,7 @@ will be queried and controlField will not.
283
283
284
284
``` graphql
285
285
query myQuery ($someTest : Boolean ) {
286
- experimentalField @if : $someTest
286
+ experimentalField @if : $someTest ,
287
287
controlField @unless : $someTest
288
288
}
289
289
```
@@ -303,13 +303,13 @@ as well as friends of some user:
303
303
query noFragments {
304
304
user (id : 4 ) {
305
305
friends (first : 10 ) {
306
- id
307
- name
306
+ id ,
307
+ name ,
308
308
profilePic (size : 50 )
309
- }
309
+ },
310
310
mutualFriends (first : 10 ) {
311
- id
312
- name
311
+ id ,
312
+ name ,
313
313
profilePic (size : 50 )
314
314
}
315
315
}
@@ -322,14 +322,14 @@ a parent fragment or query.
322
322
``` graphql
323
323
query withFragments {
324
324
user (id : 4 ) {
325
- friends (first : 10 ) { ... friendFields }
325
+ friends (first : 10 ) { ... friendFields },
326
326
mutualFriends (first : 10 ) { ... friendFields }
327
327
}
328
328
}
329
329
330
330
fragment friendFields on User {
331
- id
332
- name
331
+ id ,
332
+ name ,
333
333
profilePic (size : 50 )
334
334
}
335
335
```
@@ -345,14 +345,14 @@ For example:
345
345
query withNestedFragments
346
346
{
347
347
user (id : 4 ) {
348
- friends (first : 10 ) { ... friendFields }
348
+ friends (first : 10 ) { ... friendFields },
349
349
mutualFriends (first : 10 ) { ... friendFields }
350
350
}
351
351
}
352
352
353
353
fragment friendFields on User {
354
- id
355
- name
354
+ id ,
355
+ name ,
356
356
... standardProfilePic
357
357
}
358
358
@@ -382,8 +382,8 @@ For example in this query on the Facebook data model:
382
382
``` graphql
383
383
query FragmentTyping {
384
384
profiles (handles : ["zuck" , " cocacola" ]) {
385
- handle
386
- ... userFragment
385
+ handle ,
386
+ ... userFragment ,
387
387
... pageFragment
388
388
}
389
389
}
@@ -435,10 +435,10 @@ same thing using inline fragments.
435
435
``` graphql
436
436
query InlineFragmentTyping {
437
437
profiles (handles : ["zuck" , " cocacola" ]) {
438
- handle
438
+ handle ,
439
439
... on User {
440
440
friends { count }
441
- }
441
+ },
442
442
... on Page {
443
443
likers { count }
444
444
}
0 commit comments