nuxt-villus
Version:
Villus GraphQL integration with Nuxt.js
54 lines (37 loc) • 1.27 kB
Markdown
# Nuxt Villus
[](https://www.npmjs.com/package/nuxt-villus)
[](https://github.com/lewebsimple/nuxt-villus#readme)
[](https://github.com/lewebsimple/nuxt-villus/graphs/commit-activity)
[](https://github.com/lewebsimple/nuxt-villus/blob/master/LICENSE)
> Villus GraphQL client integration with Nuxt.js
### 🚧 This is a work-in-progress, do not use in production
## Features
- Provide Villus client to Nuxt / Vue
[📖 **Release Notes**](./CHANGELOG.md)
## Setup
Install with yarn:
```sh
yarn add nuxt-villus graphql
```
Install with npm:
```bash
npm install nuxt-villus graphql
```
**nuxt.config.js**
```ts
export default {
modules: ["nuxt-villus"],
villus: {
/**
* GraphQL HTTP endpoint
*/
httpEndpoint: "https://rickandmortyapi.com/graphql",
/**
* GraphQL WS endpoint
*/
wsEndpoint: "wss://rickandmortyapi.com/graphql",
},
}
```
## 📝 License
[MIT license](https://github.com/lewebsimple/nuxt-villus/blob/master/LICENSE)