Issue

sealed class Issue

All the issues that can be collected while analyzing a graphql document

Types

Link copied to clipboard
class ConditionalFragment(val message: String, val sourceLocation: SourceLocation) : Issue

A fragment has an @include or @skip directive. While this is valid GraphQL, the responseBased codegen does not support that

Link copied to clipboard
class DeprecatedUsage(val message: String, val sourceLocation: SourceLocation) : Issue

A deprecated field/enum is used

Link copied to clipboard
class ParsingError(val message: String, val sourceLocation: SourceLocation) : Issue

A grammar error

Link copied to clipboard
class ReservedEnumValueName(val message: String, val sourceLocation: SourceLocation) : Issue

Certain enum value names such as type are reserved for Apollo.

Link copied to clipboard
enum Severity : Enum<Issue.Severity>
Link copied to clipboard
class UnusedVariable(val message: String, val sourceLocation: SourceLocation) : Issue

A variable is unused

Link copied to clipboard
class UpperCaseField(val message: String, val sourceLocation: SourceLocation) : Issue

When models are nested, upper case fields are not supported as Kotlin doesn't allow a property name with the same name as a nested class. If this happens, the easiest solution is to add an alias with a lower case first letter. If there are a lot of such fields, the Apollo compiler option flattenModels can also be used to circumvent this error at the price of possible suffixes in model names.

Link copied to clipboard
class ValidationError(    val message: String,     val sourceLocation: SourceLocation,     val severity: Issue.Severity = Severity.ERROR,     val details: ValidationDetails = ValidationDetails.Other) : Issue

A GraphqQL validation error as per the spec

Properties

Link copied to clipboard
val message: String
Link copied to clipboard
val severity: Issue.Severity
Link copied to clipboard
val sourceLocation: SourceLocation

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard