SearchResult.ts 479 B

12345678910111213141516
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { SearchResult } from '#shared/graphql/types.ts'
  3. import type { DeepPartial } from '@apollo/client/utilities'
  4. import type { ResolversMeta } from '../builders/index.ts'
  5. export default (
  6. _1: any,
  7. _2: any,
  8. meta: ResolversMeta,
  9. ): DeepPartial<SearchResult> => {
  10. return {
  11. // always generate types based on the query variable
  12. __typename: meta.variables.onlyIn as 'Ticket',
  13. }
  14. }