Sha256: da34fc7562cfc64feec78a87c4e1e2e86e574b4c0a30d1cb0704ac849477c9ba
Contents?: true
Size: 1.35 KB
Versions: 5
Compression:
Stored size: 1.35 KB
Contents
module Ecoportal module API class GraphQL module Query class ContractorEntities < Ecoportal::API::GraphQL::Base::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
5 entries across 5 versions & 1 rubygems