lib/rails/graphql/request.rb
# Execute a given document with the given arguments
Execute a given document with the given arguments
Execute a given document with the given arguments
def execute(document, as: :string, **xargs)
        reset!(**xargs)
        to = RESPONSE_FORMATS[as]
        @response = initialize_response(as, to)
        execute!(document)
        response.public_send(to)
      end
def execute ( document , as : :string , ** xargs ) reset! ( ** xargs ) to = RESPONSE_FORMATS [ as ] @response = initialize_response ( as , to ) execute! ( document ) response . public_send ( to ) end
Execute a given document with the given arguments
Execute a given document with the given arguments
document
as
xargs