vue-cli-plugin-apollo
Version:
vue-cli 3 plugin to add Apollo and GraphQL
20 lines (14 loc) • 339 B
Markdown
# Manual code changes
In case the plugin isn't able to modify the file containing the root Vue instance:
Import the provider:
```js
import { createProvider } from './vue-apollo'
```
Then in the root instance, set the `apolloProvider` option:
```js
new Vue({
el: '#app',
// Add this line
apolloProvider: createProvider(),
})
```