@raynode/graphql-anywhere
v1.0.0
Published
This is a graphql server-ish module that enables you to run a graphql resolver anywhere. This is thought to be used in the browser as a first step to integrating graphql later in the production cycle.
Downloads
5
Readme
graphql-anywhere
This is a graphql server-ish module that enables you to run a graphql resolver anywhere. This is thought to be used in the browser as a first step to integrating graphql later in the production cycle.
- TypeScript 2.5 to ES6 transpilation
- TSLint 5.x
- Jest unit testing and code coverage
- Type definitions for Node.js v6.x (LTS) and Jest
- .editorconfig for consistent file format
Getting Started
Install graphql-anywhere using npm:
npm i graphql-anywhere
Usage
import { createServer } from 'graphql-anywhere'
const { client } = createServer({ typeDefs, resolver })
import { queryRequestFactory, queryFactory, createClient, createServer } from 'graphql-anywhere'
Contributing
If you want to help with this project, just leave a bugreport or pull request. I'll try to come back to you as soon as possible
License
MIT