graphql-schema-linter icon indicating copy to clipboard operation
graphql-schema-linter copied to clipboard

Validate GraphQL schema definitions against a set of rules

Results 73 graphql-schema-linter issues
Sort by recently updated
recently updated
newest added

Hi, The above two rules are not working for my schema. ` ``` type Friend{ id: String, firstname: String, lastName: String, gender: Gender, age: Int, email: String, contacts: [Contact] }...

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [chalk](https://togithub.com/chalk/chalk) | [`^2.0.1` -> `^5.0.0`](https://renovatebot.com/diffs/npm/chalk/2.0.1/5.2.0) | [![age](https://badges.renovateapi.com/packages/npm/chalk/5.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)...

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | [`2.6.2` -> `2.8.8`](https://renovatebot.com/diffs/npm/prettier/2.6.2/2.8.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/2.8.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) |...

Please consider the schema below. The comment at the top follows the docs for disabling a rule. When running the linter against that schema, the error `A ``PageInfo`` object type...

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [glob](https://togithub.com/isaacs/node-glob) | [`^7.1.2` -> `^8.0.0`](https://renovatebot.com/diffs/npm/glob/7.1.2/8.0.3) | [![age](https://badges.renovateapi.com/packages/npm/glob/8.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)...

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [cosmiconfig](https://togithub.com/davidtheclark/cosmiconfig) | [`^5.2.1` -> `^7.0.0`](https://renovatebot.com/diffs/npm/cosmiconfig/5.2.1/7.0.1) | [![age](https://badges.renovateapi.com/packages/npm/cosmiconfig/7.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)...

Inspired by prior work done in https://github.com/cjoudrey/graphql-schema-linter/pull/266. This pull request modifies the `DefinedTypesAreUsed` rule to report unused types named `Query`, `Mutation`, and `Subscription` when the schema is configured to use...

We are developing micro-services in NestJS-typescript, Each of them exposes a GraphQL schema. In order to expose a single graph, we are using a federation service, also in NestJS. I...

When we have a circular schema reference e.g. if a Post contains User and User contains posts, and they are in separate files that import each other then the linter...

```gql "file1.gql" type Query { items: [Item] } ``` ```gql "file2.gql" type Query { item: Item } ```