gqlint

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 2 Imported by: 0

README

gqlint

gqlint is a linter for GraphQL's schemas and queries.

Install

gqlint can be installed by go install command.

$ go install github.com/gqlgo/gqlint@latest

The gqlint command has two flags, schema and query which will be parsed and analyzed by analyzers.

$ gqlint -schema="server/graphql/schema/**/*.graphql" -query="client/**/*.graphql"

The default value of schema is "schema/*/**.graphql" and query is query/*/**.graphql.

schema flag accepts URL for a endpoint of GraphQL server. lackid will get schemas by an introspection query via the endpoint.

$ gqlint -schema="https://example.com" -query="client/**/*.graphql"

Analyzers

gqlint is a collection of below analyzers.

Author

Appify Technologies, Inc.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL