@vnodes/graphql
    Preparing search index...

    Interface UnionOptions<T>

    Interface defining options that can be passed to createUnionType function.

    interface UnionOptions<T extends readonly Type<unknown>[] = Type<unknown>[]> {
        description?: string;
        name?: string;
        resolveType?: ResolveTypeFn<any, any>;
        types: () => T;
    }

    Type Parameters

    • T extends readonly Type<unknown>[] = Type<unknown>[]
    Index

    Properties

    description?: string

    Description of the union.

    name?: string

    Name of the union.

    resolveType?: ResolveTypeFn<any, any>

    Custom implementation of the "resolveType" function.

    types: () => T

    Types that the union consist of.