The official Apollo and GraphQL integration for Vue.js. Version 3.1.2 provides reactive GraphQL queries, mutations, and subscriptions via Vue's reactive system. Supports both Apollo Client v2 and v3 (via @apollo/client). Ships TypeScript definitions. Key differentiators: seamless Vue reactivity, `$apollo` helper, and `ApolloProvider` component. Alternatives include `vue-query` (TanStack Query) or raw Apollo Client.
npm install vue-apolloNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Setup Apollo Client with VueApollo plugin and instantiate Vue app.
Replace 'apollo-client' with '@apollo/client' and adjust imports accordingly.
Use ApolloProvider.provide or useApollo composable.
Call Vue.use(VueApollo) before new Vue().
Wrap functional component in a stateful component.
Use the `apollo` option in component definition.
npm install vue-apollo && import VueApollo from 'vue-apollo'
Switch to import statement or use require('vue-apollo').defaultEnsure Vue.use(VueApollo) is called and apolloProvider is provided to root Vue instance