@basehub/7lu6d6ukhp
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

TypeScript SDK for https://basehub.com.

Features

  • No codegen needed
  • Type completion & Type validation
  • No dependency on graphql
  • Works in browser, Node, Deno, Cloudflare workers, Bun and more

Usage

import { createClient } from '@basehub/7lu6d6ukhp'

const client = createClient({ token: process.env.BASEHUB_TOKEN })

client
  .query({
    _sys: {
      hash: true,
      id: true,
      slug: true,
    },
  })
  .then((data) => console.log(JSON.stringify(data, null, 2)))

// query variables
let filter
let first = 3

client
  .query({
    adsf: {
      __args: {
        filter: filter,
        first: first,
      },
      _meta: {
        totalCount: true,
      },
      _sys: {
        createdAt: true,
        hash: true,
        id: true,
      },
      _title: true,
    },
  })
  .then((data) => console.log(JSON.stringify(data, null, 2)))

This client has been generated with Genql, you can read more about usage and features here.

Support

Contact support@basehub.ai for any feedback or questions.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i @basehub/7lu6d6ukhp

Homepage

basehub.com

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

215 kB

Total Files

55

Last publish

Collaborators

  • julianbenegas
  • bsmnt