2026-01-02 13:41:09 +00:00
|
|
|
// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
2022-01-12 06:31:38 +00:00
|
|
|
|
2023-04-24 12:50:55 +00:00
|
|
|
import registerRelayStylePagination from '#shared/server/apollo/cache/utils/registerRelayStylePagination.ts'
|
2022-01-12 06:31:38 +00:00
|
|
|
|
2024-05-17 13:31:19 +00:00
|
|
|
import type { InMemoryCacheConfig } from '@apollo/client/cache/inmemory/types'
|
|
|
|
|
|
2025-06-11 17:45:28 +00:00
|
|
|
export default function register(config: InMemoryCacheConfig): InMemoryCacheConfig {
|
2022-05-02 05:47:45 +00:00
|
|
|
return registerRelayStylePagination(config, 'ticketsByOverview', [
|
2022-01-12 06:31:38 +00:00
|
|
|
'overviewId',
|
|
|
|
|
'orderBy',
|
|
|
|
|
'orderDirection',
|
|
|
|
|
])
|
|
|
|
|
}
|