@awardit/graphql-client

A more capable client for basic queries

Usage no npm install needed!

<script type="module">
  import awarditGraphqlClient from 'https://cdn.skypack.dev/@awardit/graphql-client';
</script>

README

GraphQL Client

Greenkeeper badge

A simple graphql-client library where queries are just typed strings and responses are just promises.

Features

  • Simple: Queries are just strings with phantom types for variables and response-type.
  • Easy batching: Can automatically batch all calls and ensure they are performed serially.
  • Simple cache: Caches responses based on query and variables.

Installation

npm i @awardit/graphql-client