package
Parse Graphql Query.
npm install parse-graphqlGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
73.3 kB
Includes dependencies.
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).
yarn add parse-graphqlconst { parse } = require('parse-graphql')
parse(`{
user {
name
id
}
}`)git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureparse-graphql © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST