Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 935 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 935 Bytes

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.