@eyewa/graphql-request
https://github.com/prisma-labs/graphql-request
Forked fromPlease follow https://github.com/prisma-labs/graphql-request
documentation for the general integration guides. We only document the extended functionalities.
Install
Install using npm
npm install @eyewa/graphql-request
Install using yarn
yarn add @eyewa/graphql-request
Usage
import { GraphQLClient } from 'graphql-request'
// ... or create a GraphQL client instance to send requests
const client = new GraphQLClient(endpoint, { headers: {} })
client.query(query, variables).then(data => console.log(data))