Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saihaj/graphql-validate

Validate graphql operations against a schema
https://github.com/saihaj/graphql-validate

graphql

Last synced: 16 days ago
JSON representation

Validate graphql operations against a schema

Awesome Lists containing this project

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:

```bash
Usage: @graphql-validate/cli [options]

CLI to validate GraphQL operations against a schema

Options:
-V, --version output the version number
-s, --schema Path to the schema file or URL to fetch the schema from
-o, --operation Path to the operation files (default: "**/*.graphql")
-h, --help display help for command
```

You can load schema from a [local file](https://www.graphql-tools.com/docs/schema-loading#graphql-file-loader) or a [remote url](https://www.graphql-tools.com/docs/schema-loading#url-loader).

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