0.0.0-beta.10 • Published 3 years ago
@tomekf/gqlite v0.0.0-beta.10
@tomekf/gqlite
Lightweight GraphQL requests
Installation
yarn add @tomekf/gqlite # or npm i @tomekf/gqlite
Usage
import gqlite from '@tomekf/gqlite';
// …
gqlite(url, { query, variables, headers, method, ...other }).then(/* … */).catch(/* … */);
Use body
instead of query
/variables
pair for sending batch requests.
(And then) use rawRequest
for raw json response (no parsing).
Important
Requires async/await, Promise, fetch and Headers support.
Versions
- ES5 CommonJs
@tomekf/gqlite/dist
- ES6+ with ESM
@tomekf/gqlite/src
Changelog
0.0.0-beta.10
3 years ago
0.0.0-beta.9
4 years ago
0.0.0-beta.8
4 years ago
0.0.0-beta.7
4 years ago
0.0.0-beta.6
5 years ago
0.0.0-beta.5
5 years ago
0.0.0-beta.4
5 years ago
0.0.0-beta.3
5 years ago
0.0.0-beta.2
5 years ago
0.0.0-beta.1
5 years ago
0.0.0-beta.0
5 years ago