Skip to content

Rules Catalog

Rule Default Severity Context In recommended?
noAnonymousOperations error Document Yes
noDeprecated warn Document-Schema Yes
noDuplicateFields warn Document Yes
noHashtagDescription warn Schema Yes
noUnreachableTypes warn Schema Yes
redundantFields warn Document Yes
requireDeprecationReason warn Schema Yes
uniqueEnumValueNames warn Schema Yes
noUnusedFragments warn Project Yes
noUnusedFields warn Project Yes
alphabetize warn Document + Schema No
descriptionStyle warn Schema No
inputName warn Schema No
loneExecutableDefinition warn Document No
matchDocumentFilename warn Document No
namingConvention warn Document + Schema No
noOnePlaceFragments warn Project No
noRootType error Schema No
noScalarResultTypeOnMutation warn Schema No
noTypenamePrefix warn Schema No
operationNameSuffix warn Document No
relayConnectionTypes warn Schema No
relayEdgeTypes warn Schema No
relayArguments warn Schema No
requireDeprecationDate warn Schema No
relayPageInfo warn Schema No
requireDescription warn Document + Schema No
requireFieldOfTypeQueryInMutationResult warn Schema No
requireNullableFieldsWithOneof error Schema No
requireNullableResultInRoot warn Schema No
requireTypePatternWithOneof warn Schema No
requireImportFragment warn Document No
requireSelections error Document-Schema No
restyFieldNames warn Schema No
selectionSetDepth warn Document No
strictIdInTypes warn Schema No
uniqueNames error Project No
noUnusedVariables warn Document No
  • Document — Analyzes a single document without schema. Fast.
  • Document-Schema — Analyzes a single document against the schema. Fast.
  • Schema — Analyzes the schema definition. Fast.
  • Project — Analyzes all documents together. Slower, best for CI.