class GraphQL::Schema::Object::FieldsAreRequiredError
Raised when an Object doesn’t have any field defined and hasn’t explicitly opted out of this requirement
Public Class Methods
Source
# File lib/graphql/schema/object.rb, line 16 def initialize(object_type) message = "Object types must have fields, but #{object_type.graphql_name} doesn't have any. Define a field for this type, remove it from your schema, or add `has_no_fields(true)` to its definition." super(message) end
Calls superclass method