0.1.7 • Published 7 months ago
@l1network/chaingraph-genql v0.1.7
@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/genqlUsage
import { createClient } from '@chaingraph/genql'
const client = createClient({
// Configure your client options here
})
// Use the generated types and queriesDevelopment
To generate the GraphQL client:
npm run gen
# or
yarn gen
# or
pnpm gen
# or
bun run genLicense
MIT