diff options
Diffstat (limited to 'webui/src/apollo.ts')
-rw-r--r-- | webui/src/apollo.ts | 12 |
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, }), }); |