Skip to content

Commit 55c119b

Browse files
committed
add merge gif
1 parent 0dc3750 commit 55c119b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,8 @@ fragment username_admin on AdminUser {
556556

557557
### Query Merging: Merge Multiple Queries into One Request
558558

559+
![merge](./resources/graphql-merge.gif)
560+
559561
`graphql.js` supports **query merging** that allows you to collect all the requests into one request.
560562

561563
Assume we've these queries on server, define them just like before we do:
@@ -663,6 +665,7 @@ And variables will be generated, too:
663665
> The `merge{number}` aliases won't be passed into your responses, since they will be used for initial seperation.
664666
665667
> ⚠️ **Important Restriction**: You cannot use multiple root fields using query merging.
668+
> ⚠️ **Important Restriction**: Autodeclaration is on by default, do not use `alwaysAutodeclare: true`.
666669
667670
## Debugging
668671

resources/graphql-merge.gif

6.21 MB
Loading

0 commit comments

Comments
 (0)