Greed
A tiny unopinionated 1kb extendable GraphQL client

This library is meant to implement a minimal framework agnostic GraphQL client.
It allows you to query and create mutations on the client. Greed can be easily
extended by other libraries to provide more functionality.
Install
npm install --save greed
Shape
Greed:: a -> function
Greed({
url: String,
token: String,
plugins: {
pre: [Function],
post: [Function]
}
});
In Practice
It should now look like this:
import Greed from 'greed';
var gql = Greed({
url: 'https://localhost:3000/',
token: 'someCrazySuperSecretToken',
plugins: {
pre: [
],
post: [
]
}
});
gql(`{
person(personID: 2){
name
species{
name
}
}
}`);
License
MIT