0.0.18 • Published 11 months ago

@basehub-dev/julianbenegas.web2 v0.0.18

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

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.

0.0.18

11 months ago

0.0.17

11 months ago

0.0.16

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago