Sha256: 1442758f3d1163ffe3450264ecd06a4648c60510b2e702e771e8cf53cccd4338

Contents?: true

Size: 777 Bytes

Versions: 5

Compression:

Stored size: 777 Bytes

Contents

module Ecoportal
  module API
    class GraphQL
      module Query
        class Action < Ecoportal::API::GraphQL::Logic::Query
          field_name :action

          accepted_params :id
          class_resolver :item_class, Ecoportal::API::GraphQL::Model::Action

          private

          def basic_block(&block)
            action_block = block || default_block
            proc {
              query(id: :id!) {
                currentOrganization {
                  action(id: :id, &action_block)
                }
              }
            }
          end

          def default_block
            proc {
              ___Ecoportal__API__GraphQL__Fragment__Action
            }
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.4.3 lib/ecoportal/api/graphql/query/action.rb
ecoportal-api-graphql-0.4.2 lib/ecoportal/api/graphql/query/action.rb
ecoportal-api-graphql-0.4.1 lib/ecoportal/api/graphql/query/action.rb
ecoportal-api-graphql-0.4.0 lib/ecoportal/api/graphql/query/action.rb
ecoportal-api-graphql-0.3.16 lib/ecoportal/api/graphql/query/action.rb