lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb in ecoportal-api-graphql-0.3.15 vs lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb in ecoportal-api-graphql-0.3.16
- old
+ new
@@ -5,24 +5,24 @@
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
+ class_resolver :input_class, Ecoportal::API::GraphQL::Input::ContractorEntity::Create
private
def basic_block(&block)
payload_block = block || default_payload_block
- Proc.new {
+ proc {
mutation(input: :CreateContractorEntityInput!) {
createContractorEntity(input: :input, &payload_block)
}
}
end
def default_payload_block
- Proc.new {
+ proc {
clientMutationId
errors {
details
fullMessages
}