lib/rails/graphql/request.rb
def reset!(args: nil, variables: {}, operation_name: nil)
          @args    = build_ostruct(args || variables).freeze
          @errors  = Request::Errors.new(self)
          @visitor = GraphQL::Native::Visitor.new
          @operation_name = operation_name

          @stack      = [schema]
          @cache      = {}
          @fragments  = {}
          @operations = {}
        end
# Reset principal variables and set the given +args+
Reset principal variables and set the given +args+
Reset principal variables and set the given + args +
def reset!(args: nil, variables: {}, operation_name: nil)
          @args    = build_ostruct(args || variables).freeze
          @errors  = Request::Errors.new(self)
          @visitor = GraphQL::Native::Visitor.new
          @operation_name = operation_name
          @stack      = [schema]
          @cache      = {}
          @fragments  = {}
          @operations = {}
        end
def reset! ( args : nil , variables : { } , operation_name : nil ) @args = build_ostruct ( args || variables ) . freeze @errors = Request :: Errors . new ( self ) @visitor = GraphQL :: Native :: Visitor . new @operation_name = operation_name @stack = [ schema ] @cache = { } @fragments = { } @operations = { } end
Reset principal variables and set the given +args+
Reset principal variables and set the given + args +
args
variables
operation_name