overviews.rb 565 B

12345678910111213141516
  1. # Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. module Gql::Queries
  3. class User::Current::Ticket::Overviews < BaseQuery
  4. description 'Ticket overviews according to the personal sorting of the current user'
  5. argument :ignore_user_conditions, Boolean, description: 'Include additional overviews by ignoring user conditions'
  6. type [Gql::Types::OverviewType], null: false
  7. def resolve(ignore_user_conditions:)
  8. Service::User::Overview::List.new(context.current_user, ignore_user_conditions:).execute
  9. end
  10. end
  11. end