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