module Ecoportal module API class GraphQL module Logic class Query < Ecoportal::API::GraphQL::Logic::BaseQuery class GenericItem def initialize(*_args, **_kargs) raise "Missuse error. You should define a item_class for a class that inherits from Query class." end end class_resolver :item_class, GenericItem def response_class item_class end end end end end end