Files
grecia/app/controllers/graphql_controller.rb
2016-09-28 12:47:07 +02:00

12 lines
246 B
Ruby

class GraphqlController < ApplicationController
def query
#puts "I'm the GraphqlController inside the #query action!!"
render json: ConsulSchema.execute(
params[:query],
variables: params[:variables] || {}
)
end
end