Class: Mj::GraphQL::Commands::QueryFileCommandHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/mj/graphql/commands/query_file_command_handler.rb

Instance Method Summary collapse

Instance Method Details

#handle(command) ⇒ Object



10
11
12
13
# File 'lib/mj/graphql/commands/query_file_command_handler.rb', line 10

def handle(command)
  request = RequestFactory.new.from_file(command.file)
  Client.new.send(request)
end