Skip to content
Cheng Gu edited this page Oct 27, 2018 · 3 revisions

FetchQL

npm Build Status Coverage Status

FetchQL is a query client for GraphQL server works on both browser and Node(need fetch support, eg. node-fetch)

Upgrade to 2.2.0

Now FetchQL distributes an ES module(./lib/fetchql.es.js) by default and you can simply import FetchQL by import fetchql from 'fetchql'.

For details, please refer to PR: Added support for ES modules by default.

Breaking Changes(since v2.0.0)

  • Source code has been moved into ./src and distributed file goes to ./lib;
  • Distributed file(./lib/fetchql.js) is unminified now.

Pros:

  • lightweight
  • wrap query methods
  • easily set server-side
  • get enum types by names (with cache)
  • built-in interceptors
  • request state callbacks
  • written in ES2015 and modules
Clone this wiki locally