@graphql-validate/cli
v0.2.0
Published
CLI tool to validate GraphQL operations against a schema.
Downloads
8
Readme
@graphql-validate
With the power of GraphQL-Tools and GraphQL-JS, we are able to provide a smooth experience for validation your GraphQL operations during development, or in CI.
@graphql-validate/cli
is a simple CLI tools that helps you validate GraphQL operations against a given schema. To use it you can
Usage:
Usage: @graphql-validate/cli [options]
CLI to validate GraphQL operations against a schema
Options:
-V, --version output the version number
-s, --schema <schema> Path to the schema file or URL to fetch the schema from
-o, --operation <operation> Path to the operation files (default: "**/*.graphql")
-h, --help display help for command
You can load schema from a local file or a remote url.
For operations it supports following extensions [graphql](https://www.graphql-tools.com/docs/schema-loading#graphql-file-loader), [ts,js](https://www.graphql-tools.com/docs/schema-loading#code-file-loader)