parse-graphql
v1.0.0
Published
Parse Graphql Query.
Downloads
757,737
Readme
parse-graphql
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- 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