addArg

fun addArg(name: String, typeName: String)

Adds an argument to the field

Parameters

name

Name of the Argument

typeName

Name of the type used by the argument. Note: The string is passed as is.

See also


fun addArg(name: String, typeName: String, type: Field.ArgumentType)
fun addArg(name: String, typeName: Long, type: Field.ArgumentType)

Adds an argument to the field

Parameters

name

Name of the Argument

typeName

Name of the type used by the argument.

type

ArgumentType to determine formatting to be put on the typeName. ArgumentType.STRING_LITERAL becomes "value". ArgumentType.NUMBER and ArgumentType.TYPE are passed as is

See also


fun addArg(name: String, variable: Variable)

Adds a variable as an argument to the field. This will automatically register the variable for use in the query or mutation.

Parameters

name

Name of the Argument

variable

Variable to use.


fun addArg(name: String, value: Long)

Adds an argument to the field

Parameters

name

Name of the Argument

value

Name of the type used by the argument. Note: The string is passed as is.

See also