0.0.2 • Published 4 years ago

@phiskills/graphql-client v0.0.2

Weekly downloads
1
License
GPL-3.0-only
Repository
-
Last release
4 years ago

Phi Skills GraphQL Client for JavaScript

Homepagehttps://phiskills.com
GitHubhttps://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.

0.0.2

4 years ago

0.0.1

4 years ago