Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit 70f9e42

Browse files
committed
add to_s to query
1 parent 1c293a3 commit 70f9e42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/graphql_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class GraphqlController < ApplicationController
22
def execute
3-
query_string = params[:query]
3+
query_string = params[:query].to_s
44
variables = ensure_hash(params[:variables])
55
result = ::Graph::Schema.execute(query_string, variables: variables)
66
render json: result

0 commit comments

Comments
 (0)