articles.ts 458 B

1234567891011121314
  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, 'ticketArticles', [
  8. 'ticket',
  9. 'first',
  10. ])
  11. }