GQLResult

class GQLResult<out V : Any>(val value: V?, val issues: List<Issue>)

The result of a parsing or validation operation. It's tri-state:

  • value and no-issue => success

  • no value and issues => failure

  • value and issues => partial success

  • no value and no issues => not possible

Constructors

Link copied to clipboard
constructor(value: V?, issues: List<Issue>)

Properties

Link copied to clipboard

issues found during parsing/validations. Some of them might be Apollo specific and will not throw in getOrThrow

Link copied to clipboard
val value: V?

Functions

Link copied to clipboard
fun getOrThrow(): V