index.ts 590 B

1234567891011121314151617
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import type { App } from 'vue'
  3. import mainInitializeApolloClient from '@shared/server/apollo'
  4. import type {
  5. InitializeAppApolloClient,
  6. CacheInitializerModules,
  7. } from '@shared/types/server/apollo/client'
  8. export const cacheInitializerModules: CacheInitializerModules =
  9. import.meta.glob('./cache/initializer/*.ts', { eager: true })
  10. const initializeApolloClient: InitializeAppApolloClient = (app: App) => {
  11. mainInitializeApolloClient(app, cacheInitializerModules)
  12. }
  13. export default initializeApolloClient