Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 826 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 826 Bytes

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.