variable

fun variable(name: String, type: String)

Create a variable for use in the GraphQL query

Parameters

name

Name of the variable. Do not put the $, It will be added

type

Name of the type of the variable.


fun variable(variable: Variable)