debian-mirror-gitlab/app/graphql/types/mutation_type.rb

45 lines
2.2 KiB
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-11-08 19:23:39 +05:30
module Types
class MutationType < BaseObject
2018-11-18 11:00:15 +05:30
include Gitlab::Graphql::MountMutation
2020-03-13 15:44:24 +05:30
graphql_name 'Mutation'
2018-11-08 19:23:39 +05:30
2019-09-30 21:07:59 +05:30
mount_mutation Mutations::AwardEmojis::Add
mount_mutation Mutations::AwardEmojis::Remove
mount_mutation Mutations::AwardEmojis::Toggle
2020-01-01 13:55:28 +05:30
mount_mutation Mutations::Issues::SetConfidential
mount_mutation Mutations::Issues::SetDueDate
2020-03-13 15:44:24 +05:30
mount_mutation Mutations::Issues::Update
2019-12-26 22:10:19 +05:30
mount_mutation Mutations::MergeRequests::SetLabels
mount_mutation Mutations::MergeRequests::SetLocked
mount_mutation Mutations::MergeRequests::SetMilestone
mount_mutation Mutations::MergeRequests::SetSubscription
2019-09-30 21:07:59 +05:30
mount_mutation Mutations::MergeRequests::SetWip, calls_gitaly: true
2019-12-26 22:10:19 +05:30
mount_mutation Mutations::MergeRequests::SetAssignees
2019-09-30 21:07:59 +05:30
mount_mutation Mutations::Notes::Create::Note, calls_gitaly: true
mount_mutation Mutations::Notes::Create::DiffNote, calls_gitaly: true
mount_mutation Mutations::Notes::Create::ImageDiffNote, calls_gitaly: true
2020-03-13 15:44:24 +05:30
mount_mutation Mutations::Notes::Update::Note,
description: 'Updates a Note. If the body of the Note contains only quick actions, ' \
'the Note will be destroyed during the update, and no Note will be ' \
'returned'
mount_mutation Mutations::Notes::Update::ImageDiffNote,
description: 'Updates a DiffNote on an image (a `Note` where the `position.positionType` is `"image"`). ' \
'If the body of the Note contains only quick actions, the Note will be ' \
'destroyed during the update, and no Note will be returned'
2019-09-30 21:07:59 +05:30
mount_mutation Mutations::Notes::Destroy
2019-12-26 22:10:19 +05:30
mount_mutation Mutations::Todos::MarkDone
2020-01-01 13:55:28 +05:30
mount_mutation Mutations::Todos::Restore
mount_mutation Mutations::Todos::MarkAllDone
2020-03-13 15:44:24 +05:30
mount_mutation Mutations::Todos::RestoreMany
2020-01-01 13:55:28 +05:30
mount_mutation Mutations::Snippets::Destroy
mount_mutation Mutations::Snippets::Update
mount_mutation Mutations::Snippets::Create
mount_mutation Mutations::Snippets::MarkAsSpam
2018-11-08 19:23:39 +05:30
end
end
2019-12-04 20:38:33 +05:30
::Types::MutationType.prepend_if_ee('::EE::Types::MutationType')