1.0.1 • Published 1 year ago
@takeshape/graphql-validate v1.0.1
graphql-validate
Validates your project's GraphQL queries. All code was extraced and adapted from GraphQL Inspector.
Why?
The original code is being updated, and there is no published version that
works with graphql
v16. This is particularly a problem with npm
v8 which
throws an error due to peer conflicts.
Installation
$ npm add @takeshape/graphql-validate -D
You must have a valid graphql-config in your project root.
Usage
In your package.json
, add the following scripts
:
{
"graphql-validate": "graphql-validate"
}
Then run
$ npm run graphql-validate
Options
$ graphql-validate --help
This supports all the
graphql-cli
options.