Socket
Socket
Sign inDemoInstall

@basehub/7lu6d6ukhp

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basehub/7lu6d6ukhp


Version published
Maintainers
2
Created

Readme

Source

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

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

Keywords

FAQs

Last updated on 15 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc