# Variable

annotation class Variable(val name: String, val fromObjectField: String = UNSET_STRING_VALUE, val fromQueryField: String = UNSET_STRING_VALUE, val fromArgument: String = UNSET_STRING_VALUE)(source)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

fromArgument
Link copied to clipboard
val fromArgument: String

a path into a GraphQL argument of the field to which this annotation is applied.

fromObjectField
Link copied to clipboard
val fromObjectField: String

a path into a selection set of the field to which this annotation is applied.

fromQueryField
Link copied to clipboard
val fromQueryField: String

see fromObjectField

name
Link copied to clipboard
val name: String

the name of the variable being defined