Search Results for

    Show / Hide Table of Contents

    TSchemaDocument.SetTypeResolver Method

    Overloads

    • TSchemaDocument.SetTypeResolver(string, ITypeResolver)
    • TSchemaDocument.SetTypeResolver(string, TTypeResolverFunc)

    TSchemaDocument.SetTypeResolver(string, ITypeResolver)

    Sets the type resolver for the specified interface or union type.

    Remarks

    If neither an interface type nor an union type with the specified name exist in the schema, an exception will be raised.

    Syntax

    Unit: GraphQL.Schema

    procedure TSchemaDocument.SetTypeResolver(const AbstractTypeName: string; Resolver: ITypeResolver); overload;

    Parameters

    <-> Parameter Type Description
    const AbstractTypeName string The name of the interface or union type.
    Resolver ITypeResolver The type resolver to be set for the type.

    See also

    • TSchemaDocument

    TSchemaDocument.SetTypeResolver(string, TTypeResolverFunc)

    Sets the type resolver for the specified interface or union type.

    Remarks

    If neither an interface type nor an union type with the specified name exist in the schema, an exception will be raised.

    Syntax

    Unit: GraphQL.Schema

    procedure TSchemaDocument.SetTypeResolver(const AbstractTypeName: string; Func: TTypeResolverFunc); overload;

    Parameters

    <-> Parameter Type Description
    const AbstractTypeName string The name of the interface or union type.
    Func TTypeResolverFunc The anonymous function which will be executed to resolve the type.

    See also

    • TSchemaDocument
    In This Article
    Back to top GraphQL for Delphi v1.4
    © 2021 - 2024 tmssoftware.com