parse-graphql

1.0.0 • Public • Published

parse-graphql

NPM version NPM downloads CircleCI donate chat

Given a GraphQL source, parses it into a Document.

Throws GraphQLError if a syntax error is encountered.

This module is basically a standalone version (70KB unminified) for require('graphql').parse (1.8MB).

Install

yarn add parse-graphql

Usage

const { parse } = require('parse-graphql')
 
parse(`{
  user {
    name
    id
  }
}`)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

parse-graphql © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).

github.com/egoist · GitHub @EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i parse-graphql

Weekly Downloads

62,922

Version

1.0.0

License

MIT

Unpacked Size

75.1 kB

Total Files

4

Last publish

Collaborators

  • egoist