overwrite: true
generates:
  src/resolvers/generated/index.ts:
    schema: 'src/schema/[^_]*.graphql'
    plugins:
      - add:
          content: |
            /* eslint-disable */
            // @generated
            // This file was automatically generated and should not be edited
      - typescript
      - typescript-resolvers
    config:
      avoidOptionals: true
      contextType: ../../types#ServiceContext
      federation: true
      useIndexSignature: true
      showUnusedMappers: true
      enumsAsConst: true
      makeResolverTypeCallable: true
      onlyResolveTypeForInterfaces: true
      enumValues:
        TenantType: ../../connectors/ows-permissions/types#TenantType
      mappers:
        ApplicationGroup: ../types/mappers#ApplicationGroupKey
        ApplicationV2: ../types/mappers#ApplicationKey
        Collaborator: ../types/mappers#CollaboratorKey
        CompanyBrand: ../types/mappers#CompanyBrandKey
        Identity: ../types/mappers#IdentityKey
        LabelParticipant: ../types/mappers#LabelParticipantKey
        ParentCompany: ../types/mappers#ParentCompanyKey
        RoleV2: ../types/mappers#RoleKey
        Subaccount: ../types/mappers#SubaccountKey
        Vendor: ../types/mappers#VendorKey
      scalars:
        JSON: unknown
        BrandExperience: string
