lib/ecoportal/api/graphql/builder/contractor_entity.rb in ecoportal-api-graphql-0.3.15 vs lib/ecoportal/api/graphql/builder/contractor_entity.rb in ecoportal-api-graphql-0.3.16

- old
+ new

@@ -15,17 +15,25 @@ def update(**kargs, &block) updateMutation.query(**kargs, &block) end + def destroy(**kargs, &block) + destroyMutation.query(**kargs, &block) + end + private def createMutation Ecoportal::API::GraphQL::Mutation::ContractorEntity::Create.new(client) end def updateMutation Ecoportal::API::GraphQL::Mutation::ContractorEntity::Update.new(client) + end + + def destroyMutation + Ecoportal::API::GraphQL::Mutation::ContractorEntity::Destroy.new(client) end end end end end