BlackWaspTech / wasp-docs

Documentation for the Wasp GraphQL family of libraries.

Home Page:https://blackwasptech.github.io/wasp-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐝 Wasp GraphQL 🐝

Promise-based GraphQL Libraries for Javascript

npm Build Status npm bundle size (minified)

Execute a GraphQL query exactly like you would a fetch request. No dependencies included.

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

// fetch
fetch('/graphql', { body: JSON.stringify({ query: '{ foo { bar baz } }' }) })

// query
import { query } from 'wasp-graphql'
query('/graphql', { fields: '{ foo { bar baz } }' })

// Logging the results
fetch(url, init)
  .then(res => res.json())
  .then(json => console.log(json))
query(url, init)
  .then(res => res.json())
  .then(json => console.log(json))

Read more.

npm Build Status npm bundle size (minified)

Automates GraphQL queries for an existing Redux codebase.

Read more.

Provides integration between Redux and Apollo.

Keeps apollo-state-cache and the redux store in sync whenever you execute an Apollo query.

Read more.


Code of Conduct

Read our Code of Conduct here.

License

Free and Open Source under the MIT License.

About

Documentation for the Wasp GraphQL family of libraries.

https://blackwasptech.github.io/wasp-docs/

License:MIT License


Languages

Language:HTML 79.4%Language:CSS 20.6%