@basehub-dev/julianbenegas.web2
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

TypeScript SDK for https://basehub-git-jb-sdk-gen-basement.vercel.app/julianbenegas/otro.

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-dev/julianbenegas.web2'

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

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

client
  .query({
    another: {
      _sys: {
        createdAt: true,
        hash: true,
        id: true,
      },
      image: {
        alt: true,
        aspectRatio: true,
        fileName: true,
      },
      text: true,
    },
  })
  .then((x) => console.log(JSON.stringify(x, null, 4)))

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-dev/julianbenegas.web2

Weekly Downloads

1

Version

0.0.18

License

none

Unpacked Size

142 kB

Total Files

55

Last publish

Collaborators

  • bsmnt