lib/graphql/dsl/nodes/containers/variable_definition.rb
##
# Create variable definition container from argument value
#
# @param value [] argument value
#
# @return [VariableDefinition] variable definition container
Create variable definition container from argument value
Create variable definition container from argument value
def from(value)
          case value
          when VariableDefinition then value
          when Symbol, String then new(value)
          else
            raise Error.new('Unsupported format of variable definition', class: value.class.name, value: value)
          end
        end
def from ( value ) case value when VariableDefinition then value when Symbol , String then new ( value ) else raise Error . new ( 'Unsupported format of variable definition' , class : value . class . name , value : value ) end end
Create variable definition container from argument value
Create variable definition container from argument value
variable definition container
variable definition container
VariableDefinition
value
None