We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b95062 commit cd37ef0Copy full SHA for cd37ef0
1 file changed
lib/graphql/execution/input_values.rb
@@ -10,6 +10,13 @@ def initialize(query, runner)
10
11
def variable_values
12
@variable_values ||= begin
13
+ if @query.selected_operation.nil?
14
+ raise <<~TXT
15
+ Missing selected_operation: #{@query.query_string.inspect}
16
+
17
+ #{@query.context.errors.map(&:inspect).join("\n\n")}
18
+ TXT
19
+ end
20
variable_nodes = @query.selected_operation.variables
21
if variable_nodes.empty?
22
EmptyObjects::EMPTY_HASH
0 commit comments