An open API service indexing awesome lists of open source software.

https://github.com/storipress/apollo-vue-devtools

Integrate GraphQL Apollo with Vue Devtools!
https://github.com/storipress/apollo-vue-devtools

apollo apollo-client apollo-server debugging devtool-extension devtools graphql vue vue-devtools vuejs vuejs3

Last synced: 6 days ago
JSON representation

Integrate GraphQL Apollo with Vue Devtools!

Awesome Lists containing this project

README

          

# apollo-vue-devtool: Integrate Apollo with Vue Devtools




![](./example/src/assets/timeline.png)

## Usage

1. Add the plugin to your Vue project:
```js
import { createApp } from 'vue'
import Plugin from '@storipress/apollo-vue-devtool'
import App from './App.vue'

const app = createApp(App)
app.use(Plugin)
app.mount('#app')
```

2. Add the DebugLink to your Apollo client:

```js
import { DebugLink } from '@storipress/apollo-vue-devtool'
import { ApolloClient, ApolloLink, HttpLink } from '@apollo/client/client'

const client = new ApolloClient({
link: ApolloLink.from([
new DebugLink(),
new HttpLink({
uri: 'http://example.com/graphql',
}),
]),
})
```

3. Now open Vue Devtools and you'll see your queries in the timeline!

## Installation

### NPM

```shell
$ npm install --save-dev @storipress/apollo-vue-devtool
```

### Yarn

```shell
$ yarn add --dev @storipress/apollo-vue-devtool
```