@basehub/julianbenegas.website
v0.0.2
Published
SDK client for basehub.ai GraphQL API
Downloads
3
Readme
TypeScript SDK for https://basehub.ai/julianbenegas/website.
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/julianbenegas.website'
const client = createClient({ token: process.env.BASEHUB_TOKEN })
client
.query({
home: {
_sys: {
id: true,
lastModified: true,
title: true,
},
title: true,
},
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
client
.query({
sys: {
id: true,
slug: true,
title: 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 [email protected] for any feedback or questions.