@basehub/facundo-81v8.facundos-repo
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

TypeScript SDK for https://basehub.ai.

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/facundo-81v8.facundos-repo'

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)))

client
  .query({
    homepage: {
      _sys: {
        createdAt: true,
        hash: true,
        id: true,
      },
      introduction: true,
      untitled: 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.

Package Sidebar

Install

npm i @basehub/facundo-81v8.facundos-repo

Homepage

basehub.ai

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

148 kB

Total Files

55

Last publish

Collaborators

  • julianbenegas
  • bsmnt