JSPM

  • Created
  • Published
  • Downloads 551530
  • Score
    100M100P100Q170549F
  • License MIT

A GraphQL client for executing GraphQL queries over HTTP.

Package Exports

  • graphql-http

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graphql-http) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

graphql-http

A GraphQL client for executing queries over HTTP.

Usage

import graphQLHTTP from 'graphql-http'

const client = graphQLHTTP('http://localhost:3000');

// Queries
let resultPromise = c.query('{ users { id, name }}');

// Mutations
let resultPromise = c.mutate('mutation {updateUser}');