UpperCaseField

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.

This error is an Apollo Kotlin specific error

Constructors

Link copied to clipboard
fun UpperCaseField(message: String, sourceLocation: SourceLocation)

Properties

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