ticket.rb 365 B

12345678910111213141516
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. class Ticket < BaseQuery
  4. description 'Fetch a ticket by ID'
  5. argument :ticket, Gql::Types::Input::Locator::TicketInputType, description: 'Ticket locator'
  6. type Gql::Types::TicketType, null: false
  7. def resolve(ticket:)
  8. ticket
  9. end
  10. end
  11. end