🔧 This rule is automatically fixable by the --fix
CLI option.
This rule aims to detect unused GraphQL operations and report them. If you import a GraphQL operation but never utilize it in your code, this rule will inform you so you can clean up unused code and keep your application lean.
import myOperation from './somePath.graphql';
import myOperation from './somePath.graphql';
function someFunction() {
useMyOperationQuery();
}
If you have a particular reason for keeping unused GraphQL operations in your codebase (perhaps for future implementation or for documentation purposes), you might want to disable this rule in those specific files or scenarios.