Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
60bd2039
Commit
60bd2039
authored
Aug 18, 2020
by
Brandon Labuschagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add isSingleRequest to docs
parent
ce2549c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
doc/development/fe_guide/graphql.md
doc/development/fe_guide/graphql.md
+22
-0
No files found.
doc/development/fe_guide/graphql.md
View file @
60bd2039
...
...
@@ -466,6 +466,28 @@ fetchNextPage() {
Please note we don't have to save
`pageInfo`
one more time;
`fetchMore`
triggers a query
`result`
hook as well.
### Managing performance
The Apollo client will batch queries by default. This means that if you have 3 queries defined,
Apollo will group them into one request, send the single request off to the server and only
respond once all 3 queries have completed.
If you need to have queries sent as individual requests, additional context can be provided
to tell Apollo to do this.
```
javascript
export
default
{
apollo
:
{
user
:
{
query
:
QUERY_IMPORT
,
context
:
{
isSingleRequest
:
true
,
}
}
},
};
```
### Testing
#### Mocking response as component data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment