Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Latest commit

 

History

History
66 lines (41 loc) · 1.83 KB

README.md

File metadata and controls

66 lines (41 loc) · 1.83 KB

Build status Coverage status NPM version Licence

GraphQL Lite Client

NOTE: This is a work in progress and not yet ready for real use.

🍃 Lightweight GraphQL client which combines Rollup build-time parsing, transforming, and tree-shaking of queries, and run-time client-side network requests. The goal is to have the most lightweight and performant GraphQL client run-time.

Similar projects:

Quick start

Install:

yarn add graphql-lite graphql

Setup in rollup.config.js:

import { graphql } from 'graphql-lite';

export default {
  plugins: [graphql()],
};

Use:

import { parse, request } from 'graphql-lite';

// TODO: Add usage example

Browser compatibility

TODO: Add note about this package using native fetch and how to add a polyfill for old browser and node compatibility.

yarn add isomorphic-unfetch

TODO: Add note that is very old browser support is required, you need to also polyfill Promise.

Changelog

See CHANGELOG.

Licence

graphql-lite is an Apache-2.0 licensed open source project. See LICENCE.


© 2018 We Are Genki