Package Exports
- weapp-graphql-request
Readme
weapp-graphql-request (WIP)
Forked from graphql-request
Minimal GraphQL client supporting weapp environment.
Install
npm i weapp-graphql-request weapp-fetch graphql
Quick Start
import { GraphQLClient, gql } from 'weapp-graphql-request'
import { weappFetch } from 'weapp-fetch'
const graphQLClient = new GraphQLClient('http://localhost:3000', {
fetch: weappFetch
})
graphQLClient.request(query, variables).then((data) => console.log(data))