Skip to the content.

< Back


GraphQLVariableReference

Namespace: GraphQL.Query.Builder

Represents a reference to a GraphQL variable ($varName) used in argument values.

public class GraphQLVariableReference

Inheritance ObjectGraphQLVariableReference
Attributes NullableContextAttribute, NullableAttribute

Properties

Name

Gets the variable name (without the $ prefix).

public string Name { get; }

Property Value

String

Constructors

GraphQLVariableReference(String)

Initializes a new instance of the GraphQLVariableReference class.

public GraphQLVariableReference(string name)

Parameters

name String
The variable name (without the $ prefix).

Exceptions

ArgumentException
The name is not a valid GraphQL name.


< Back