summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/graphql.js
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 09:06:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 09:06:41 +0000
commit4f01ac5ba0bf72427ed4fef9b229d056dbb60e89 (patch)
tree55f2bfd319a18c05ac4e4401c7a0d7b13dd3d74f /app/assets/javascripts/lib/graphql.js
parent213ce7805856f2cc1d019a03c76ae0d098337c26 (diff)
downloadgitlab-ce-4f01ac5ba0bf72427ed4fef9b229d056dbb60e89.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/lib/graphql.js')
-rw-r--r--app/assets/javascripts/lib/graphql.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/graphql.js b/app/assets/javascripts/lib/graphql.js
index ca797cde913..2c5278d16ae 100644
--- a/app/assets/javascripts/lib/graphql.js
+++ b/app/assets/javascripts/lib/graphql.js
@@ -26,8 +26,11 @@ export default (resolvers = {}, config = {}) => {
createUploadLink(httpOptions),
new BatchHttpLink(httpOptions),
),
- cache: new InMemoryCache({ ...config.cacheConfig, freezeResults: true }),
+ cache: new InMemoryCache({
+ ...config.cacheConfig,
+ freezeResults: config.assumeImmutableResults,
+ }),
resolvers,
- assumeImmutableResults: true,
+ assumeImmutableResults: config.assumeImmutableResults,
});
};