# apollographql/eslint-plugin-graphql

:vertical_traffic_light: Check your GraphQL query strings against a schema.

Repository: https://github.com/apollographql/eslint-plugin-graphql
Canonical: https://ross.abutalabs.com/products/eslint-plugin-graphql
Homepage: https://www.npmjs.com/package/eslint-plugin-graphql
Language: JavaScript
License Family: other
Last push: 2026-08-26T11:00:03+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3786, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1215, forks 93 (observed 2026-08-28T04:04:01.035086+00:00)

## What it is
An ESLint plugin that validates GraphQL query strings in JavaScript (tagged template literals) and .graphql files against a GraphQL schema. It ships with presets for Apollo, Relay, Lokka, and FraQL clients.

## Use cases
- lint graphql queries against a schema in eslint
- catch invalid graphql fields before runtime
- validate tagged template graphql strings in javascript
- lint .graphql files in ci
- enforce graphql query correctness in apollo or relay projects

## When to choose
- you have an existing eslint setup using apollo, relay, lokka, or fraql and want schema-validated queries

## When to avoid
- starting a new project - the plugin is slated for deprecation and graphql-eslint is the recommended successor
- you need to lint schemas rather than queries

## Facets
- artifact type: plugin
- maturity: maintenance
- function: linter, graphql, form-handling, developer-tools
- domain: web-development, frontend, developer-tools, apis
- platform: editor-plugin
- tags: eslint, eslint-plugin, graphql-schema, static-analysis, deprecated, nodejs, javascript

## Member repositories
- apollographql/eslint-plugin-graphql (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.035086+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:14.478108+00:00, confidence not recorded.
  - readme: https://github.com/apollographql/eslint-plugin-graphql (fetched 2026-08-28T04:04:01.035086+00:00, sha b15f82043014)
- Data as of 2026-08-30T08:39:29.467469+00:00.
