Skip to content

Commit 992fb15

Browse files
committed
some small edits for new lines + updating a word
1 parent 5cf74db commit 992fb15

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spec/Section 2 -- Language.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,13 @@ FragmentName : Name but not `on`
587587

588588
Fragments are the primary unit of composition in GraphQL.
589589

590-
Fragments allow for the definition of selection sets that are colocated with the logic that requires those selections, making it easier to add and remove selections as needed.
590+
Fragments allow for the definition of selection sets that are colocated with the
591+
logic that requires those selections, making it easier to add and remove selections
592+
as needed.
591593

592-
For example, if we have some `friendProfile` logic that requires `id`, `name`, and `profilePic`, and we want to apply that logic to the mutual friends as well as friends of some user:
594+
For example, if we have some `friendProfile` logic that requires `id`, `name`,
595+
and `profilePic`, and we want to apply that logic to the mutual friends as well
596+
as friends of some user:
593597

594598
```graphql example
595599
query noFragments {
@@ -608,8 +612,8 @@ query noFragments {
608612
}
609613
```
610614

611-
The fields required of `friendProfile` can be extracted into a fragment and composed
612-
by a parent fragment or operation.
615+
The fields required by `friendProfile` can be extracted into a fragment and
616+
composed by a parent fragment or operation.
613617

614618
```graphql example
615619
query withFragments {

0 commit comments

Comments
 (0)