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 {
626626 }
627627}
628628```
629+
629630``` graphql example
630631"Fields required to display a friend's profile"
631632fragment friendProfile on User {
@@ -634,9 +635,10 @@ fragment friendProfile on User {
634635 profilePic (size : 50 )
635636}
636637```
638+
637639If ` 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.
640642
641643Fragments are consumed by using the spread operator (` ... ` ). All fields selected
642644by 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