DirectiveHandlerResult

interface DirectiveHandlerResult

This provides interface for directive handling results. If there are directive blocked by this, should be handled after setCompleted or setFailed called.

Types

Link copied to clipboard
data class CancelPolicy(val cancelAll: Boolean = true, val partialTargets: Set<NamespaceAndName>? = null)
Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun setCompleted()

Should be called when directive handled successfully by DirectiveHandler.

Link copied to clipboard
abstract fun setFailed(description: String, cancelPolicy: DirectiveHandlerResult.CancelPolicy = POLICY_CANCEL_ALL)

Should be called when directive handling failed by DirectiveHandler.