Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/deps.ts>GraphQL.GraphQLUnionTypeConfig

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
interface GraphQL.GraphQLUnionTypeConfig
import { type GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/deps.ts";
const { GraphQLUnionTypeConfig } = GraphQL;

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<GraphQLUnionTypeExtensions>>
optional
astNode: Maybe<UnionTypeDefinitionNode>
optional
extensionASTNodes: Maybe<ReadonlyArray<UnionTypeExtensionNode>>