@takeshape/graphql-validate
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @takeshape/graphql-validate

Weekly Downloads

73

Version

1.0.1

License

none

Unpacked Size

34.1 kB

Total Files

22

Last publish

Collaborators

  • asprouse
  • incompl
  • mshick
  • mcat