JSPM

  • Created
  • Published
  • Downloads 219
  • Score
    100M100P100Q116909F
  • License MIT

Nhost Vue library

Package Exports

  • @nhost/vue

Readme

Nhost Vue

The Nhost Vue client exports a Nhost client that can be installed as a Vue plugin, and composables that make it easier to work with Nhost in your Vue app.

Documentation

Installation

Install the Nhost Vue client together with GraphQL:

# With npm
npm install @nhost/vue graphql

# With Yarn
yarn add @nhost/vue graphql

Initializing

Initialize a single nhost instance, and install it as a plugin in your Vue app.

import { createApp } from 'vue'
import { NhostClient } from '@nhost/vue'

import App from './App.vue'

const nhost = new NhostClient({
  backendUrl: '<Your Nhost Backend URL>'
})

createApp(App).use(nhost).mount('#app')