UNPKG

@nestjs/graphql

Version:

GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.

17 lines • 580 B
import { Type } from '@nestjs/common'; import { ResolveTypeFn } from '../../interfaces/index.js'; import { RegisterInOption } from './class.metadata.js'; export interface UnionMetadata<T extends readonly Type<unknown>[] = readonly Type<unknown>[]> { name: string; typesFn: () => T; id?: symbol; description?: string; resolveType?: ResolveTypeFn; /** * NestJS module that this union belongs to. * @see RegisterInOption for details */ registerIn?: RegisterInOption; directives?: string[]; } //# sourceMappingURL=union.metadata.d.ts.map