Exception: GraphQL::Query::OperationNameMissingError

Inherits:
ExecutionError show all
Defined in:
lib/graphql/query.rb

Instance Attribute Summary

Attributes inherited from ExecutionError

#ast_node, #path

Instance Method Summary collapse

Methods inherited from ExecutionError

#to_h

Constructor Details

#initialize(names) ⇒ OperationNameMissingError

Returns a new instance of OperationNameMissingError


14
15
16
17
# File 'lib/graphql/query.rb', line 14

def initialize(names)
  msg = "You must provide an operation name from: #{names.join(", ")}"
  super(msg)
end