kgraphql / com.apurebase.kgraphql.schema.directive / Directive

Directive

data class Directive : __Directive

Directives provide a way to describe alternate runtime execution and type validation behavior in a GraphQL document.

Types

Partial

data class Partial

Constructors

<init>

Directives provide a way to describe alternate runtime execution and type validation behavior in a GraphQL document.

Directive(name: String, locations: List<DirectiveLocation>, execution: DirectiveExecution, description: String?, arguments: List<InputValue<*>>)

Properties

args

val args: List<__InputValue>

arguments

val arguments: List<InputValue<*>>

description

val description: String?

execution

val execution: DirectiveExecution

locations

val locations: List<DirectiveLocation>

name

val name: String

Companion Object Properties

INCLUDE

The @include directive may be provided for fields, fragment spreads, and inline fragments. Allows for conditional inclusion during execution as described by the if argument.

val INCLUDE: Partial

SKIP

The @skip directive may be provided for fields, fragment spreads, and inline fragments. Allows for conditional exclusion during execution as described by the if argument.

val SKIP: Partial