@nhost/vue
TypeScript icon, indicating that this package has built-in type declarations

2.5.1 • Public • Published

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({
  subdomain: '<Your Nhost project subdomain>',
  region: '<Your Nhost project region>'
})

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

Package Sidebar

Install

npm i @nhost/vue

Homepage

nhost.io

Weekly Downloads

258

Version

2.5.1

License

MIT

Unpacked Size

1.3 MB

Total Files

89

Last publish

Collaborators

  • nunopato