Sha256: f4ae7e5b2ecc943bc25f3c26ba42ce50de8b8c7718981be33b1f4cc402a85ee8

Contents?: true

Size: 564 Bytes

Versions: 33

Compression:

Stored size: 564 Bytes

Contents

require_relative 'local_libs'
require 'ecoportal/api-graphql'

api = Ecoportal::API::GraphQL.new
api.currentOrganization.contractorEntities.each_with_index do |entity, idx|
  break if idx >= 14
  puts "#{idx+1}. #{entity.name}"
end

result = api.currentOrganization.contractorEntities(first: 10)
result.nodes.each {|entity| puts "• #{entity.name}"}

result = api.currentOrganization.contractorEntities(first: 5) {
  nodes {
    id
    name
    approved
  }
}
result.nodes.each {|entity| puts "#{entity.name} => approved? #{entity.approved}"}

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.4.2 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.4.1 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.4.0 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.16 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.15 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.14 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.13 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.12 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.11 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.10 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.9 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.8 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.7 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.6 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.5 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.3 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.3.1 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.2.3 tests/contractor_entities_get.rb
ecoportal-api-graphql-0.2.2 tests/contractor_entities_get.rb