0.1.10 • Published 3 years ago

nuxt-villus v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Nuxt Villus

Version Documentation Maintenance License: MIT

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

Setup

Install with yarn:

yarn add nuxt-villus graphql

Install with npm:

npm install nuxt-villus graphql

nuxt.config.js

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