ogql
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ogql

npm version npm downloads Github Actions Codecov

Minimal GraphQL Client

Install Package

# yarn
yarn install ogql

# pnpm
pnpm install ogql

Usage

import { GqlClient } from 'ogql'

const client = new GqlClient({ host: 'https://example.com/graphql' })

const result = await client.execute('query { todos { id text } }')

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

Package Sidebar

Install

npm i ogql

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

6.15 kB

Total Files

14

Last publish

Collaborators

  • diizzayy