Bot releases are hidden (Show)
$skipAllQueries
and $skipAllSubscriptions
now work on initial component mountPublished by Akryum about 4 years ago
For Typescript users, if you get errors with your .gql
files, you can add a gql.d.ts
file in your sources folder with the following content:
declare module '*.gql' {
import { DocumentNode } from 'graphql'
const content: DocumentNode
export default content
}
declare module '*.graphql' {
import { DocumentNode } from 'graphql'
const content: DocumentNode
export default content
}
Published by Akryum almost 5 years ago
V4 Alpha is now live! It is full packed with changes, most notably an entirely new API based on the new Vue Composition API. This releases prepares the future full v4 release which will be streamlined and lighter.
Although the alpha is already quite extensively tested, it is not recommended to use it in production just yet. We will do our best to have the least number of breaking changes during the development cycle, but it can still happen until the beta when the API will be stable.
Documentation preview lives here: https://v4.apollo.vuejs.org/
@vue/apollo-option
: Classic Option API@vue/apollo-components
: Apollo Components such as <ApolloQuery>
@vue/apollo-composable
(NEW): Composition API@vue/apollo-ssr
: SSR utils@vue/apollo-util
(NEW): Apollo-related utils (such as error formatter)import VueApolloOption from '@vue/apollo-option'
import VueApolloComponents from '@vue/apollo-components'
Vue.use(VueApolloOption)
Vue.use(VueApolloComponents)
Before:
ApolloSSR.getStates(apolloProvider)
After:
ApolloSSR.getStates({
defaultClient: apolloClient
})
Or:
ApolloSSR.getStates(apolloProvider.clients)
error
handlers: added vm
, key
, type
, options
argumentserrorPolicy
, closes #526this
in the apollo
option in decorator, closes #780VueApolloQueryDefinition
, closes #787subscribeToMore
may not infer this
correctly because of an issue in TypeScript. Workaround: use a function to return the whole query definition and use arrow functions (example).pollInterval
(#613) closes #453prefetch
ApolloProvider option (#710)