debian-mirror-gitlab/app/graphql/mutations/terraform/state/delete.rb
2021-01-29 00:20:46 +05:30

18 lines
334 B
Ruby

# frozen_string_literal: true
module Mutations
module Terraform
module State
class Delete < Base
graphql_name 'TerraformStateDelete'
def resolve(id:)
state = authorized_find!(id: id)
state.destroy
{ errors: errors_on_object(state) }
end
end
end
end
end