Skip to main content
Latest
interface GraphQLUnionTypeConfig
import { type GraphQLUnionTypeConfig } from "https://deno.land/x/graphql_deno@v15.0.0/mod.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>>