Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@crossroads-loyalty-solutions/graphql-client

A more capable client for basic queries

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 @crossroads-loyalty-solutions/graphql-client