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

- old
+ new

@@ -1,22 +1,13 @@ module Ecoportal module API class GraphQL module Query class Actions < Ecoportal::API::GraphQL::Base::QueryConnection + field_name :actions + class_resolver :item_class, Ecoportal::API::GraphQL::Model::Action class_resolver :connection_class, Ecoportal::API::GraphQL::Connection::Action - - def query(path: default_base_path, **kargs, &block) - path ||= default_base_path - request(*path, "actions") 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