12 lines
246 B
Ruby
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
|