Minimal GraphQL Client
# yarn
yarn install ogql
# pnpm
pnpm install ogql
import { GqlClient } from 'ogql'
const client = new GqlClient({ host: 'https://example.com/graphql' })
const result = await client.execute('query { todos { id text } }')
- Clone this repository
- Enable Corepack using
corepack enable
(usenpm i -g corepack
for Node.js < 16.10) - Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
Made with 💛
Published under MIT License.