npm install @nhost/nhost-js
# or yarn
yarn add @nhost/nhost-js
import { NhostClient } from '@nhost/nhost-js'
const nhost = new NhostClient({
subdomain: '<Your Nhost project subdomain>',
region: '<Your Nhost project region>'
})
Access Nhost GraphQL methods using nhost.graphql
.
Access Nhost Auth methods using nhost.auth
.
Access Nhost Storage methods using nhost.storage
.
Access Nhost Functions methods via nhost.functions
.