show.rb 512 B

123456789101112131415161718
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. class Ticket::SharedDraft::Zoom::Show < BaseQuery
  4. description 'Get a single ticket shared draft in detail view'
  5. argument :shared_draft_id, GraphQL::Types::ID,
  6. loads: Gql::Types::Ticket::SharedDraftZoomType,
  7. description: 'The draft to get'
  8. type Gql::Types::Ticket::SharedDraftZoomType, null: false
  9. def resolve(shared_draft:)
  10. shared_draft
  11. end
  12. end
  13. end