Sha256: eeabf85f955bd59e0ec579fc1223875020a19429689bfb78b11ab3367bd29b49
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 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 { 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 { totalCount pageInfo { endCursor } nodes { ___Ecoportal__API__GraphQL__Fragment__ContractorEntity } } end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems