aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/apollo.ts
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2020-09-30 17:31:48 +0200
committerQuentin Gliech <quentingliech@gmail.com>2020-09-30 17:31:48 +0200
commitf4433d80c4fe6ad1ddf00bd8bcda99c15dc38450 (patch)
tree00944f334894303148980faf4a2d85723922aad3 /webui/src/apollo.ts
parentdb20bc34e5cd696842f459b1d0b8b6aa6457d739 (diff)
downloadgit-bug-f4433d80c4fe6ad1ddf00bd8bcda99c15dc38450.tar.gz
webui: dependencies upgrades
Most upgrades are minor version without breaking changes. One big upgrade is Apollo 2 -> 3, which required a few changes in the Apollo setup (see src/apollo.ts). Other changes are due to changes in Prettier, requiring to add parenthesis around arrow function parameters. Because of an incompatibility in older version of typescript-eslint with newer versions of typescript, I had to switch to the "next" unstable version of react-scripts. It should not break stuff though. See typescript-eslint/typescript-eslint#2442
Diffstat (limited to 'webui/src/apollo.ts')
-rw-r--r--webui/src/apollo.ts12
1 files changed, 3 insertions, 9 deletions
diff --git a/webui/src/apollo.ts b/webui/src/apollo.ts
index 785f0e7f..99860842 100644
--- a/webui/src/apollo.ts
+++ b/webui/src/apollo.ts
@@ -1,17 +1,11 @@
-import ApolloClient from 'apollo-boost';
-import {
- IntrospectionFragmentMatcher,
- InMemoryCache,
-} from 'apollo-cache-inmemory';
+import { ApolloClient, InMemoryCache } from '@apollo/client';
-import introspectionQueryResultData from './fragmentTypes';
+import introspectionResult from './fragmentTypes';
const client = new ApolloClient({
uri: '/graphql',
cache: new InMemoryCache({
- fragmentMatcher: new IntrospectionFragmentMatcher({
- introspectionQueryResultData,
- }),
+ possibleTypes: introspectionResult.possibleTypes,
}),
});