JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 162
  • Score
    100M100P100Q21485F
  • License MIT

(WIP) this is a util fork form graphql-request and only worked in weapp environment

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))