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

0.0.3 • Public • Published

gqlient

A lightweigh GraphQL client

npm

Install

# using npm
npm install --save gqlient

# using yarn
yarn add gqlient

Usage

import GQLient from 'gqlient';

Initialize a client by passing your endpoint and an (optional) options object the the GQLient constructor. Then you can make requests by running client.query, client.mutate, or client.execute (they all do the same thing). Any of these methods accept two parameters, the first being your query (either a string or query document) and the second being a variables object.****

License

MIT © Vince Coppola

Package Sidebar

Install

npm i gqlient

Weekly Downloads

5

Version

0.0.3

License

MIT

Last publish

Collaborators

  • vincecoppola