graphql-proxy-client

Travis npm package Coveralls

Send proxied actions to arbitrary GraphQL endpoints.

Install

$ yarn add @pi-cubed/graphql-proxy-client

Usage

import React, { Component } from 'react';
import { render } from 'react-dom';
import { Put } from 'typed-ui';
import { Action, ProxyProvider } from '@pi-cubed/graphql-proxy-client';

const Demo = () => (
  <div>
    <h1>graphql-proxy-client Demo</h1>
    <ProxyProvider>
      <Action
        url="http://proxy-graphql.herokuapp.com"
        action="query Q { test }"
      >
        <Put />
      </Action>
    </ProxyProvider>
  </div>
);

render(<Demo />, document.querySelector('#demo'));

API

Docs

Maintainers

License

MIT © Pi Cubed

results matching ""

    No results matching ""