File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,7 @@ query withFragments {
626
626
}
627
627
}
628
628
```
629
+
629
630
``` graphql example
630
631
"Fields required to display a friend's profile"
631
632
fragment friendProfile on User {
@@ -634,9 +635,10 @@ fragment friendProfile on User {
634
635
profilePic (size : 50 )
635
636
}
636
637
```
638
+
637
639
If ` friendProfile ` no longer needs ` name ` , the ` name ` field can be removed from
638
- the ` friendProfile ` fragment and it will no longer be fetched in both locations the
639
- fragment is consumed.
640
+ the ` friendProfile ` fragment and it will no longer be fetched in both locations
641
+ the fragment is consumed.
640
642
641
643
Fragments are consumed by using the spread operator (` ... ` ). All fields selected
642
644
by the fragment will be added to the field selection at the same level as the
You can’t perform that action at this time.
0 commit comments