summaryrefslogtreecommitdiff
path: root/app/controllers/graphql_controller.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-05-28 14:41:57 +0100
committerPhil Hughes <me@iamphill.com>2019-05-29 10:31:16 +0100
commit301a7d32b40128d388aa42b487de367c1cdbc1cd (patch)
treee5bdafc36c7a6a0204272d05615d04a9f31ae3b7 /app/controllers/graphql_controller.rb
parent4a9387242dbbfee9e9ddc7b46eb69ad6a2f4ba2c (diff)
downloadgitlab-ce-301a7d32b40128d388aa42b487de367c1cdbc1cd.tar.gz
Enable GraphQL batch requests
Diffstat (limited to 'app/controllers/graphql_controller.rb')
-rw-r--r--app/controllers/graphql_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb
index e8f38899647..1ce0afac83b 100644
--- a/app/controllers/graphql_controller.rb
+++ b/app/controllers/graphql_controller.rb
@@ -53,7 +53,8 @@ class GraphqlController < ApplicationController
{
query: single_query_info[:query],
variables: build_variables(single_query_info[:variables]),
- operation_name: single_query_info[:operationName]
+ operation_name: single_query_info[:operationName],
+ context: context
}
end
end