Skip to content

The validate command extracted from graphql-inspector.

License

Notifications You must be signed in to change notification settings

takeshape/graphql-validate

Repository files navigation

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.

About

The validate command extracted from graphql-inspector.

Resources

License

Stars

Watchers

Forks

Packages

No packages published