Class: GraphQL::StaticValidation::VariableUsagesAreAllowed::FragmentVariableUsage

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphql/static_validation/rules/variable_usages_are_allowed.rb

Overview

A variable in a fragment. It's checked after the visit, against each operation which uses the fragment. list_depth is the number of list literals around the variable.

Instance Attribute Summary collapse

Instance Attribute Details

#arg_node ⇒ Object

Returns the value of attribute arg_node

Returns:

  • (Object) —

    the current value of arg_node



11
12
13
# File 'lib/graphql/static_validation/rules/variable_usages_are_allowed.rb', line 11

def arg_node
  @arg_node
end

#argument_owner ⇒ Object

Returns the value of attribute argument_owner

Returns:

  • (Object) —

    the current value of argument_owner



11
12
13
# File 'lib/graphql/static_validation/rules/variable_usages_are_allowed.rb', line 11

def argument_owner
  @argument_owner
end

#checked_variable_types ⇒ Object

Returns the value of attribute checked_variable_types

Returns:

  • (Object) —

    the current value of checked_variable_types



11
12
13
# File 'lib/graphql/static_validation/rules/variable_usages_are_allowed.rb', line 11

def checked_variable_types
  @checked_variable_types
end

#list_depth ⇒ Object

Returns the value of attribute list_depth

Returns:

  • (Object) —

    the current value of list_depth



11
12
13
# File 'lib/graphql/static_validation/rules/variable_usages_are_allowed.rb', line 11

def list_depth
  @list_depth
end

#path ⇒ Object

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



11
12
13
# File 'lib/graphql/static_validation/rules/variable_usages_are_allowed.rb', line 11

def path
  @path
end

#variable_name ⇒ Object

Returns the value of attribute variable_name

Returns:

  • (Object) —

    the current value of variable_name



11
12
13
# File 'lib/graphql/static_validation/rules/variable_usages_are_allowed.rb', line 11

def variable_name
  @variable_name
end