Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takeshape/graphql-validate
The validate command extracted from graphql-inspector.
https://github.com/takeshape/graphql-validate
Last synced: 1 day ago
JSON representation
The validate command extracted from graphql-inspector.
- Host: GitHub
- URL: https://github.com/takeshape/graphql-validate
- Owner: takeshape
- License: mit
- Created: 2022-06-07T21:03:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T20:58:14.000Z (over 1 year ago)
- Last Synced: 2023-06-09T21:27:58.385Z (over 1 year ago)
- Language: TypeScript
- Size: 626 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graphql-validate
Validates your project's GraphQL queries. All code was extraced and adapted from
[GraphQL Inspector](https://github.com/kamilkisiela/graphql-inspector).## Why?
The original code is being updated, and there is no published version that
works with `graphql` v16. This is particularly a problem with `npm` v8 which
throws an error due to peer conflicts.## Installation
```
$ npm add @takeshape/graphql-validate -D
```You must have a valid
[graphql-config](https://www.graphql-config.com/docs/user/user-introduction) in
your project root.## Usage
In your `package.json`, add the following `scripts`:
```json
{
"graphql-validate": "graphql-validate"
}
```Then run
```
$ npm run graphql-validate
```## Options
```
$ graphql-validate --help
```> This supports all the `graphql-cli` options.