Skip to content

Commit 6d67a04

Browse files
idalithbbenface
andauthored
Update website/pages/en/querying/querying-best-practices.mdx
Co-authored-by: Benoît Rouleau <[email protected]>
1 parent eb22071 commit 6d67a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/pages/en/querying/querying-best-practices.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ For most use-case, defining one fragment per type (in the case of repeated field
414414

415415
Here is a rule of thumb for using fragments:
416416

417-
- When fields of the same type are repeated in a query, group them in a Fragment
418-
- When similar but not the same fields are repeated, create multiple fragments, ex:
417+
- When fields of the same type are repeated in a query, group them in a `Fragment`.
418+
- When similar but different fields are repeated, create multiple fragments, for instance:
419419

420420
```graphql
421421
# base fragment (mostly used in listing)

0 commit comments

Comments
 (0)