A CLI tool to detect duplicate GraphQL operation names (queries, mutations, subscriptions) in static GraphQL files (.graphql) and source files (.ts, .tsx, .js, .jsx). Currently at version 1.0.0 with no regular release cadence. It recursively scans directories or single files, reporting duplicate names with counts. Differentiators: focused solely on duplicate detection, supports multiple file types, and can be used in CI/CD pipelines. Alternatives like persistgraphql are broader in scope.
npm install duplicate-operation-nameNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scans a directory recursively for duplicate GraphQL operation names in .graphql, .ts, and .js files.
Include one or more flags: --graphql, --ts, --js
Rename duplicate operations to have unique names across all files.
No dependency data recorded yet.