Latest
interface GraphQLUnionTypeConfig
import { type GraphQLUnionTypeConfig } from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/type/definition.d.ts";

Type Parameters

TSource
TContext

Properties

name: string
optional
description: Maybe<string>
types: Thunk<Array<GraphQLObjectType>>
optional
resolveType: Maybe<GraphQLTypeResolver<TSource, TContext>>

Optionally provide a custom type resolver function. If one is not provided, the default implementation will call isTypeOf on each implementing Object type.

optional
extensions: Maybe<Readonly<Record<string, any>>>
optional
astNode: Maybe<UnionTypeDefinitionNode>
optional
extensionASTNodes: Maybe<ReadonlyArray<UnionTypeExtensionNode>>