Sha256: 0bed622725698f394deea14fc6d9c6cc93fdf481d1d84bd8d436c3c2d25bf1af
Contents?: true
Size: 1.35 KB
Versions: 16
Compression:
Stored size: 1.35 KB
Contents
module Ecoportal module API class GraphQL module Query class ContractorEntities < Ecoportal::API::GraphQL::Logic::QueryConnection field_name :contractorEntities class_resolver :item_class, Ecoportal::API::GraphQL::Model::ContractorEntity class_resolver :connection_class, Ecoportal::API::GraphQL::Connection::ContractorEntity 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 { contractorEntities( searchConf: :searchConf, after: :after, before: :before, first: :first, last: :last, &connection_block ) } } } end def default_connection_block Proc.new { totalCount pageInfo { endCursor } nodes { ___Ecoportal__API__GraphQL__Fragment__ContractorEntity } } end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems