variable static method
Creates a variable node for referencing a GraphQL variable.
This method creates a VariableNode that references a variable defined in the operation's variable definitions.
Example:
final categoryVar = DocumentNodeHelpers.variable('category');
Implementation
static VariableNode variable(String name) {
return VariableNode(name: nameNode(name));
}