Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 903 Bytes

File metadata and controls

51 lines (36 loc) · 903 Bytes

@chaingraph/genql

⚠️ Work in Progress: This package is currently under active development.

A GraphQL client generator for the ChainGraph API, built with genql.

Overview

This package provides type-safe GraphQL operations for interacting with the ChainGraph API. It automatically generates TypeScript types and query builders based on the ChainGraph GraphQL schema.

Installation

npm install @chaingraph/genql
# or
yarn add @chaingraph/genql
# or
pnpm add @chaingraph/genql
# or
bun add @chaingraph/genql

Usage

import { createClient } from '@chaingraph/genql'

const client = createClient({
  // Configure your client options here
})

// Use the generated types and queries

Development

To generate the GraphQL client:

npm run gen
# or
yarn gen
# or
pnpm gen
# or
bun run gen

License

MIT