@graphql-validate/cli

0.2.0 • Public • Published

@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)

/@graphql-validate/cli/

    Package Sidebar

    Install

    npm i @graphql-validate/cli

    Weekly Downloads

    3

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    11.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • saihaj
    • dotansimha