ticketsByOverviewQuery.ts 489 B

123456789101112131415
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import registerRelayStylePagination from '#shared/server/apollo/cache/utils/registerRelayStylePagination.ts'
  3. import type { InMemoryCacheConfig } from '@apollo/client/cache/inmemory/types'
  4. export default function register(
  5. config: InMemoryCacheConfig,
  6. ): InMemoryCacheConfig {
  7. return registerRelayStylePagination(config, 'ticketsByOverview', [
  8. 'overviewId',
  9. 'orderBy',
  10. 'orderDirection',
  11. ])
  12. }