0.0.2 • Published 4 years ago
@phiskills/graphql-client v0.0.2
Phi Skills GraphQL Client for JavaScript
Homepage | https://phiskills.com |
---|---|
GitHub | https://github.com/phiskills |
Overview
This project contains the JavaScript package to create a GraphQL Client.
Installation
npm i @phiskills/graphql-client
Creating the client
import { build } from "@phiskills/graphql-client"
const client = build({ host: 'localhost', port: 80, token: '...zH34sk00wK...' })
const executeQuery = client.buidQuery(queryString)
const data = await executeQuery(variables)
const executeMutation = client.buildMutation(mutationString)
const result = await executeMutation(variables)
For more details, see GraphQL Clients.