0.0.15 • Published 2 years ago

@basehub/francisc.joyblog v0.0.15

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

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/francisc.joyblog'

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({
    authors: {
      __args: {
        filter: filter,
        first: first,
      },
      _meta: {
        totalCount: true,
      },
      _slug: true,
      _sys: {
        createdAt: true,
        hash: true,
        id: 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.

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago