chore: remove apollo 2.x and downgrade graphql to 15.x

This commit is contained in:
2022-07-05 23:05:08 +02:00
parent 2d1fa55f15
commit 5a112ba590
3 changed files with 70 additions and 1091 deletions
+1 -8
View File
@@ -19,16 +19,9 @@
"@vue/apollo-composable": "^4.0.0-alpha.18",
"@vue/apollo-option": "^4.0.0-alpha.18",
"@vue/composition-api": "^1.7.0",
"apollo": "^2.34.0",
"apollo-cache-inmemory": "^1.6.3",
"apollo-client": "^2.6.4",
"apollo-link": "^1.2.12",
"apollo-link-context": "^1.0.18",
"apollo-link-error": "^1.1.11",
"apollo-link-http": "^1.5.15",
"core-js": "3",
"dayjs": "^1.11.3",
"graphql": "^16.5.0",
"graphql": "^15.8.0",
"graphql-tag": "^2.12.6",
"moment": "^2.29.3",
"node-sass": "^7.0.1",
+3 -13
View File
@@ -1,22 +1,12 @@
import { ApolloClient } from 'apollo-client'
import {
InMemoryCache,
IntrospectionFragmentMatcher
} from 'apollo-cache-inmemory'
import { createHttpLink } from 'apollo-link-http'
import { setContext } from 'apollo-link-context'
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client/core'
import { setContext } from '@apollo/client/link/context'
import { provide } from '@vue/composition-api'
import { DefaultApolloClient } from '@vue/apollo-composable'
import introspectionQueryResultData from '../fragmentTypes.json'
import { useAuth } from './auth'
const apiUrl = process.env.graphqlApi || '/query'
const fragmentMatcher = new IntrospectionFragmentMatcher({
introspectionQueryResultData
})
const cache = new InMemoryCache({ fragmentMatcher })
const cache = new InMemoryCache()
const httpLink = createHttpLink({
uri: apiUrl
+66 -1070
View File
File diff suppressed because it is too large Load Diff