wasp-graphql
npm i wasp-graphql

wasp-graphql

Make GraphQL queries as easy as a fetch request.

by BlackWaspTech

0.3.6 (see all)License:MITTypeScript:Not Found
npm i wasp-graphql
Readme

Wasp GraphQL Micro-Libraries for Node.js and React

contributions welcome All Contributors GitHub

wasp-graphql

npm

npm install wasp-graphql

Execute a GraphQL query the same way that you would a fetch request.

Takes a url and an init object as input. Returns a Promise containing the results of the reques

Usage example

import { query } from 'wasp-graphql';

query(url, init)
  .then(res => res.json())
  .then(json => console.log(json));

Read more about wasp-graphql

redux-wasp

npm

npm install --save redux-wasp

Save the results of a GraphQL query to Redux state.

Usage example

// store.js
import { createWaspMiddleware } from 'redux-wasp';
const waspMiddleware = createWaspMiddleware();
const store = createStore(r, p, applyMiddleware(waspMiddleware));

// reducers.js
import { waspGraphqlReducer } from 'redux-wasp';
const reducers = combineReducers({
  graphql: waspGraphqlReducer
});

// run query
import { query } from 'redux-wasp';

query(url, init)
  .then(res => res.json())
  .then(json => console.log(json));

Read more about redux-wasp

redux-wasp-apollo

Provide integration between redux-wasp and apollo-link-state. Saves the results of an Apollo query to both Apollo State Cache and Redux State.

Read more about redux-wasp.


Code of Conduct

Read our Code of Conduct here.

Changelog

View it here

How to Contribute

Read more

Contributors

Thanks goes to these wonderful people:


Denny Temple


Reynolds A Colon


kamo31


marceca

This project follows the all-contributors specification. Contributions of any kind welcome!


License

Free and Open Source under the MIT License.


Navigate to wasp-graphql

Navigate to redux-wasp

Navigate to redux-wasp-apollo

Downloads/wk

25

GitHub Stars

10

LAST COMMIT

9mos ago

MAINTAINERS

3

CONTRIBUTORS

8

OPEN ISSUES

3

OPEN PRs

3
VersionTagPublished
0.3.6
latest
3yrs ago
No alternatives found
No tutorials found
Add a tutorial