@basehub-dev/julianbenegas.hey
v0.0.2
Published
SDK client for localhost:3000 GraphQL API
Downloads
12
Maintainers
Readme
TypeScript SDK for http://localhost:3000/julianbenegas/hey.
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.hey'
const client = createClient({ token: process.env.BASEHUB_TOKEN })
client
.query({
oo: {
_sys: {
id: true,
lastModified: true,
title: true,
},
bool: true,
hola: {
code: true,
html: true,
language: 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.