class GraphQL::Query::OperationNameMissingError

Public Class Methods

new(name) click to toggle source
Calls superclass method GraphQL::ExecutionError.new
# File lib/graphql/query.rb, line 21
def initialize(name)
  msg = if name.nil?
    %Q|An operation name is required|
  else
    %Q|No operation named "#{name}"|
  end
  super(msg)
end