lib/ecoportal/api/graphql/query/contractor_entities.rb in ecoportal-api-graphql-0.1.6 vs lib/ecoportal/api/graphql/query/contractor_entities.rb in ecoportal-api-graphql-0.1.7

- old
+ new

@@ -1,23 +1,13 @@ 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 - - def query(path: default_base_path, **kargs, &block) - path ||= default_base_path - #ap = access_point(path) - request(*path, "contractorEntities") do - graphql_query(**kargs, &basic_block(&block)) - end - end - - def default_base_path - ["currentOrganization"] - end private def basic_block(&block) connection_block = block || default_connection_block