Sha256: bdc06f328c6451a5eb0557b10cc9e55a5c8d14bc517405c46cbe6f2a15b10f5f

Contents?: true

Size: 1.12 KB

Versions: 16

Compression:

Stored size: 1.12 KB

Contents

module Ecoportal
  module API
    class GraphQL
      module Mutation
        module ContractorEntity
          class Create < Ecoportal::API::GraphQL::Logic::Mutation
            field_name :createContractorEntity

            class_resolver :payload_class, Ecoportal::API::GraphQL::Payload::ContractorEntity::Create
            class_resolver :input_class, Ecoportal::API::GraphQL::Model::ContractorEntity

            private

            def basic_block(&block)
              payload_block = block || default_payload_block
              Proc.new {
                mutation(input: :CreateContractorEntityInput!) {
                  createContractorEntity(input: :input, &payload_block)
                }
              }
            end

            def default_payload_block
              Proc.new {
                clientMutationId
                errors {
                  details
                  fullMessages
                }
                item {
                  ___Fragment__ContractorEntity
                }
              }
            end
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.3.15 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.14 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.13 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.12 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.11 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.10 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.9 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.8 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.7 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.6 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.5 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.3 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.3.1 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.2.3 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.2.2 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
ecoportal-api-graphql-0.2.1 lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb