single.rb 544 B

123456789101112131415161718
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. class Ticket::SharedDraft::Start::Single < BaseQuery
  4. description 'Ticket shared drafts available to start new ticket in a given group'
  5. argument :shared_draft_id, GraphQL::Types::ID,
  6. loads: Gql::Types::Ticket::SharedDraftStartType,
  7. description: 'The draft to be updated'
  8. type Gql::Types::Ticket::SharedDraftStartType, null: false
  9. def resolve(shared_draft:)
  10. shared_draft
  11. end
  12. end
  13. end