0.0.5 • Published 10 months ago

@basehub-dev/guqilmgiz1 v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

TypeScript SDK for https://basehub.dev.

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/guqilmgiz1'

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({
    asdaheyasdfsdsfasdfasasdssdfAsdfFdJklnIsdfsAsdSdsdsdfsdsfdgqrSdfgadssasdfasdasasd:
      {
        _sys: {
          createdAt: true,
          hash: true,
          id: true,
        },
        _title: 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.