Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saihaj/graphql-validate
Validate graphql operations against a schema
https://github.com/saihaj/graphql-validate
graphql
Last synced: 20 days ago
JSON representation
Validate graphql operations against a schema
- Host: GitHub
- URL: https://github.com/saihaj/graphql-validate
- Owner: saihaj
- License: mit
- Created: 2022-01-30T04:20:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T19:35:18.000Z (5 months ago)
- Last Synced: 2024-11-29T15:59:34.340Z (26 days ago)
- Topics: graphql
- Language: TypeScript
- Homepage:
- Size: 114 KB
- Stars: 13
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)`