# graphql-validate
A CLI for validating GraphQL schemas and queries.
## Install
1. [Install Rust](https://www.rust-lang.org/en-US/install.html)
2. Run `cargo install graphql-validate`
## Usage
```
USAGE:
graphql-validate <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
infer-from-file Infer how to validate the file based on the file extension. `.graphql` is a query and
`.graphqls` is a schema.
query Parse and validate the file as a query
schema Parse and validate the file as a schema
```