module Ecoportal module API class GraphQL module Query class Actions < Ecoportal::API::GraphQL::Logic::QueryConnection field_name :actions class_resolver :item_class, Ecoportal::API::GraphQL::Model::Action class_resolver :connection_class, Ecoportal::API::GraphQL::Connection::Action private def basic_block(&block) connection_block = block || default_connection_block Proc.new { query(searchConf: :Search, after: :string, before: :string, first: :int, last: :int) { currentOrganization { actions( searchConf: :searchConf, after: :after, before: :before, first: :first, last: :last, &connection_block ) } } } end def default_connection_block Proc.new { ___Ecoportal__API__GraphQL__Fragment__Pagination nodes { ___Ecoportal__API__GraphQL__Fragment__Action } } end end end end end end