diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-10 09:11:08 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-10 09:11:08 +0000 |
commit | 1f64fe671ba1a368ff7e67948448b4805cdfc2db (patch) | |
tree | 94b2f4f56db0677f59d3dbb58de5deb2fa9629f6 /doc/development/fe_guide/graphql.md | |
parent | ec890a64f727184e9a02db69994f79ab9552077d (diff) | |
download | gitlab-ce-1f64fe671ba1a368ff7e67948448b4805cdfc2db.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/fe_guide/graphql.md')
-rw-r--r-- | doc/development/fe_guide/graphql.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/development/fe_guide/graphql.md b/doc/development/fe_guide/graphql.md index 9ed3e551ff2..28ea84301a6 100644 --- a/doc/development/fe_guide/graphql.md +++ b/doc/development/fe_guide/graphql.md @@ -907,7 +907,7 @@ For example, we have a query like this: query searchGroupsWhereUserCanTransfer { currentUser { id - groups { + groups(after: 'somecursor') { nodes { id fullName @@ -920,9 +920,7 @@ query searchGroupsWhereUserCanTransfer { } ``` -Here, the `groups` field doesn't have a good candidate for `keyArgs`: both -`nodes` and `pageInfo` will be updated when we're fetching a second page. -Setting `keyArgs` to `false` makes the update work as intended: +Here, the `groups` field doesn't have a good candidate for `keyArgs`: we don't want to account for `after` argument because it will change on requesting subsequent pages. Setting `keyArgs` to `false` makes the update work as intended: ```javascript typePolicies: { |