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

Commit 95e4360

Browse files
xuorigcjoudrey
authored andcommitted
Add Film Mutation
1 parent 8c35324 commit 95e4360

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/graphql_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ class GraphqlController < ApplicationController
44
def execute
55
query_string = params[:query].to_s
66
variables = ensure_hash(params[:variables])
7-
context = { user: @user }
7+
context = {
8+
user: @user
9+
}
810

911
result = Graph::Schema.execute(query_string, variables: variables, context: context)
1012
render json: result

0 commit comments

Comments
 (0)